STS Spring Boot 仪表板无法识别成功启动 [英] STS Spring Boot Dashboard Doesn't Recognize Successful Start
问题描述
类似于
我可能不太关心图标,但由此产生的影响是应用程序无法通过启动仪表板关闭(需要 kill -9
).
应用程序启动没有任何问题:
在 1.337 秒内启动应用程序(JVM 运行 1.998)
所有三个应用程序都使用最新的 spring-boot-starter-parent
版本,
Similar to this question, but the Spring "Boot Dashboard" doesn't show as starting (the 'up arrow' icon); specifically the first two applications in the list below.
I could care less about the icon, but the resulting impact is that the applications cannot shutdown via the Boot Dashboard (required kill -9
).
The applications start without any problem:
Started Application in 1.337 seconds (JVM running for 1.998)
All three applications are using the latest spring-boot-starter-parent
version, 1.3.1.RELEASE
.
The third application's start is reflected correctly, but I'm not sure where to look--within STS or within my app config--to troubleshoot the issue.
My STS version is:
Version: 3.7.2.RELEASE
Build Id: 201511261048
Platform: Eclipse Mars.1 (4.5.1)
Please provide a sample app and I will debug the issue and then we can fix and/or provide a more precise answer to your question.
Without a sample app the best I can do is give vague hints that 'something' seems to be going wrong with the JMX lifecycle mgmt bean.
There may be a workaround you can use. The 'life-cycle-bean' support can be turned off explicitly and then you will fallback on pre boot 1.3 behavior for the dash. (This means STS will not distinguish 'starting' from 'running' state and will not use a 'ask nicely' approach to terminate the process but just forcefully shut it down).
If that's good enough for you then open the launch config for your app (e.g. by selecting it and clicking the 'pencil' button in the dash) and deselect the appropriate checkbox. See screenshot below:
这篇关于STS Spring Boot 仪表板无法识别成功启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!