【发布时间】:2019-05-12 20:13:13
【问题描述】:
我正在将 Spring Boot 应用程序从版本 1.5.6 升级到 2.1.1。当我启动应用程序时,它卡在这一行:
INFO: Initializing Spring DispatcherServlet 'dispatcherServlet'
当我点击这个网址:http://localhost:8888/actuator/health,我得到{"status":"UP"}
当我点击这个 URL:http://localhost:8888/swagger-ui.html 时,我看到了 Swagger UI。
但是我的主应用程序没有启动。知道为什么卡住了吗?
【问题讨论】:
-
你应该能够从你的 spring 记录器中看到它卡在哪里
-
你认为它为什么卡住了?换句话说,你期望发生什么没有发生的事情?
-
之后就没有消息了。我不应该看到一条消息说“服务器已启动”吗?
-
@mhasan - 你的意思是启用调试?嗯....我该怎么做?
-
server.context-path 更改为 'server.servlet.context-path'
标签: java spring spring-mvc spring-boot swagger