idea+热部署
1.在maven项目的pom.xml中插入
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>true</scope>
</dependency>
2.File—>settings—>Build,Execution,Deployment—>Compiler—>
打钩红色箭头处
3.同时按住 ctrl+shift+alt+/
点击Registry
√选compiler.automake.allow.when.app.running