Spring boot 热部署

621 阅读1分钟

1.在pom.xml中加入配置

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

  2.idea设置

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

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

选择

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