什么时Spring Boot:
百科定义:
1、创建独立的Spring应用程序
2、直接嵌入Tomcat或Jetty(无需部署WAR文件)
3、提供自以为是的“初学者” 项目对象模型(POM)以简化您的Maven配置
4、尽可能自动配置Spring
5、提供生产就绪功能,例如指标,运行状况检查和外部化配置
6、绝对没有代码生成,也不需要XML配置
使用Spring Boot能解决什么问题:
1、spring Boot 使配置变简单
2、spring Boot 使编码变简单
3、spring Boot 使部署变简单
4、spring Boot 使监控变简单 (自带监控的变量)
配置Spring Boot
新建idea项目:

选择Modules——Spring Initializr——接着就点击Next,进行下一步。

按照规范配置文件名,项目名。在Package中不能出现中文(-)。接着点击Next,进行下一步。

什么都不用选,直接Next,进行下一步。

确认路径。接着Finish,就完成配置了。

网友评论