给Spring服务的,是为了简化Spring项目的初始化搭建以及开发过程。
为什么要用SpringBoot?- 易上手
- 配置简单
- 提升开发效率
- bootstrap:由父ApplicationContext加载,因此它是要比application配置文件先加载,并且里面的属性不可被覆盖。
- application:springboot项目的自动化配置。
SpringBoot怎样实现热部署?文件格式为.yml或者.properties都可以。
.yml格式不支持@PropertySource注解导入。
- devtools:添加devtools库,在配置文件中将spring.devtools.restart.enabled设置为true。
- idea编辑器:勾上自动编译或者手动重新编译。



