解决办法1:spring-boot-devtools
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-devtools</artifactId> <scope>runtime</scope> <optional>true</optional> </dependency>
解决办法2:设置IDEA自动编译:ctrl+S保存时自动编译
参考:https://blog.csdn.net/gusijin/article/details/136058830
标签:spring,代码,boot,idea,编译,自动 From: https://www.cnblogs.com/2008nmj/p/18080588