Aub*_*ine 5 java spring intellij-idea spring-boot
我两次遇到同样的问题.一旦我尝试将spring boot maven插件版本升级到大于1.0.1的版本,应用程序就不会在任何调试断点上停止.
在开发过程中,我们确定了问题,并且在使用Spring Boot父级时,我们不得不回退到1.0.1.我只能猜测这种决定的风险是什么.
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.1.9.RELEASE</version>
<!-- <version>1.0.1.RELEASE</version> works flawlessly-->
</plugin>
</plugins>
</build>
Run Code Online (Sandbox Code Playgroud)
http://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html - 这个链接从来没有帮助过.应用程序只是无休止地等待.
如果您只是通过调试应用程序类在默认配置文件中运行,则有一种解决方法,但是在这种情况下我无法配置任何其他内容.
屏幕截图演示了调试器如何在第一个断点处停止并且应用程序启动了.

目标spring-boot:运行forks java进程,你的应用程序在另一个启动,然后附加你的调试器.您必须使用该页面http://docs.spring.io/spring-boot/docs/current/maven-plugin/examples/run-debug.html为分叉进程设置正确的调试参数,然后使用IntelliJ的功能"Remote调试".
| 归档时间: |
|
| 查看次数: |
6959 次 |
| 最近记录: |