寄语:springBoot这一系列文章是我自己在学习的时候摘抄,总结的,参考的是码云的程序猿DD,他的博客是:http://blog.didispace.com/springbootproperties,感谢他的分享!
1.访问:http://start.spring.io/,生成一个基础springBoot的maven包
2.导入之后,运行Application里面的main方法即是启动项目,注意Application一定要放在包的最外层,才能扫描到所有的文件,像下面这样去建包
3.配置数据库
#端口号
server.port=8085
4.pom引入web依赖
<!-- web模块 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
5.
这样一个简单的web就出来了