eclipse+idea开启热部署

<dependency>
   <groupId>org.springframework.boot</groupId>
   <artifactId>spring-boot-devtools</artifactId>
   <optional>true</optional>
 </dependency>

eclipse热部署默认自动开启

idea里面要设置

 1、相关偏好里开启自动编译

 2、Shift+Ctrl+Alt+/,选择Registry

   compiler.automake.allow.when.app.running  

  重启项目就可以了

posted @ 2020-05-11 14:55  java程序猴  阅读(281)  评论(0编辑  收藏  举报