devtools热部署步骤:
1.引入坐标并书写配置文件(版本号 由springboot父工程控制,
书写位置:pom.xml
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<scope>runtime</scope>
<optional>true</optional>
</dependency>
书写位置: application.yml
devtools:
restart:
enabled: true
#重启的根目录设置在此以应用于整个项目
additional-paths: src/main/java
#可选:web环境下 受保护的资源
exclude: WEB-INF/**
#模板引擎 : 关闭缓存 cache:false
2.ctrl+alt+s打开设置搜索Compiler 把Build Auto勾选

3.ctrl + shift + alt + / ,选择Registry,输入running 勾上 Compiler autoMake allow when app running
4.重启项目以生效

5.ctrl+s保存以自动重启项目从而实现热部署
