1.在pom.xml中加入配置

<!--  热部署-->
<dependency>   
 <groupId>org.springframework.boot</groupId>   
 <artifactId>spring-boot-devtools</artifactId>
</dependency>复制代码

  2.idea设置

  2.1打开设置面板 选择->compiler->Build project automatically

Spring boot  热部署_Spring boot

2.2快捷键shift+alt+contr+/  弹出面板  选择Registry

Spring boot  热部署_Spring boot _02

选择

Spring boot  热部署_Spring boot _03

重启项目  到此 热部署配置完成