项目场景:
springboot maven项目
问题描述
设置断点,debug启动项目,断点无效。
解决方案:
在pom.xml文件的plugin部分加上下面一段配置:
<configuration>
<fork>false</fork>
</configuration>
完整如下
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<fork>false</fork>
</configuration>
</plugin>
</plugins>
</build>
当SpringbootMaven项目在debug模式下启动时,如果遇到断点无效的情况,可以在pom.xml的spring-boot-maven-plugin插件配置中添加<fork>false</fork>,这将使断点生效。
4750

被折叠的 条评论
为什么被折叠?



