Spring boot—day01

源码分析

热部署
第一步:添加依赖
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> </dependency>
第二步:idea自动编译功能设置
Spring boot—day01
ctrl+shift+alt+/
Spring boot—day01
勾选下图的选项。到此热部署设置ok
Spring boot—day01

引导类分析部分
@SpringBootApplication ctrl+左键 点进去
Spring boot—day01
此处表明,spring boot的引导类就是一个配置类
Spring boot—day01
Spring boot—day01
Spring boot—day01
Spring boot—day01