IDEA中Spring热部署
1.POM依赖
<!-- Springboot 热部署 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
</dependency>
重启项目后生效,IDEA中可能不生效
2.解决方法
setting – compiler 将 Build project automatically 勾选上
查找registry,可以使用ctrl+shirt+alt+/,弹出框后下拉找到 compiler.automake.allow.when.app.running 勾选上即可