.war 独立servlet容器(关键tc服务器)上的应用程序,并且spring boot admin页面存在问题。 当我使用运行应用程序时 spring-boot:run 命令,我有正确的boot spring boot admin UI页面, 但当我在tcServer上部署war时,在根路径上 / 我看到spring boot管理页面中没有任何应用程序:
.war
spring-boot:run
/
@EnableAdminServer public class AppRunner extends SpringBootServletInitializer { ... }
在我设置的属性中:
server.port=9000
jvm 1 |[2017.08.18 12:42:04.180 AST][WARN] [d.c.b.a.s.ApplicationRegistrator][pool-3-thread-1][未能 在spring boot admin中将应用程序注册为null http://localhost:9000/api/applications 部署到servlet容器]
tcServer在8080默认端口上运行。 有谁能建议如何在外部服务器上的spring boot admin UI中查看我的应用程序?
最后,我通过添加属性解决了这个问题:
spring.boot.admin.client.service-url=http://localhost:9000
application.properties 配置。
application.properties