1、pom.xml中加入
<!--实现springboot 热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
2、setting
3、IDEA 设置为在程序运行过程中,依然允许自动编译
ctrl + shift + alt + /,选择Registry,勾选勾上 Compiler autoMake allow when app running
打完收工 就是感觉热部署有点慢