Spring boot admin without embedded Tomcat -
i'm trying deploy spring-boot .war
application on standalone servlet container (pivotal tc server) , have issue spring-boot admin page. when run app using spring-boot:run
command, have proper boot spring-boot admin ui page, when deploy war on tcserver, on root path /
see spring-boot admin page without applications inside it: how enable admin page:
@enableadminserver public class apprunner extends springbootservletinitializer { ... }
in properties set:
server.port=9000
when running tcserver see in logs:
jvm 1 | [2017.08.18 12:42:04.180 ast] [warn ] [d.c.b.a.s.applicationregistrator] [pool-3-thread-1] [failed register application null @ spring-boot-admin http://localhost:9000/api/applications): serviceurl must set when deployed servlet-container]
tcserver ran on 8080 default port. can give advice how see app in spring-boot admin ui on external server?
finally solved adding property:
spring.boot.admin.client.service-url=http://localhost:9000
to application.properties
config.
Comments
Post a Comment