本文主要是介绍idea spring boot项目调试不用每次重启,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
1.ctrl+Shift+Alt+/-----> 选择Registry ------>勾选
compiler.automake.allow.when.app.running
2.如果你进行上面的设置没有作用,请在检查下面图片的设置
Setting--->Compiler--->勾选Build project automatically
3.maven 加入依赖
<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-devtools</artifactId><optional>true</optional> <!-- 表示依赖不会传递 -->
</dependency>
<plugin><groupId>org.springframework.boot</groupId><artifactId>spring-boot-maven-plugin</artifactId><configuration><fork>true</fork> <!-- 如果没有该配置,devtools不会生效 --></configuration>
</plugin>
这篇关于idea spring boot项目调试不用每次重启的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!