嗯。。。项目重启得忍无可忍,特记录下来 ps:idea适用
pom.xml加入依赖包
<!--开启热部署-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
<optional>true</optional>
<scope>runtime</scope>
</dependency>
启动配置改一下
settings改一下
ctrl + shift+ alt+/ -- registry -- 勾compiler.automake.allow.when.app.running,ok