代码之家  ›  专栏  ›  技术社区  ›  stinger

没有嵌入式Tomcat的Spring boot admin

  •  2
  • stinger  · 技术社区  · 7 年前

    .war 独立servlet容器(关键tc服务器)上的应用程序,并且spring boot admin页面存在问题。 当我使用运行应用程序时 spring-boot:run 命令,我有正确的boot spring boot admin UI页面, 但当我在tcServer上部署war时,在根路径上 / 我看到spring boot管理页面中没有任何应用程序:

      @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中查看我的应用程序?

    1 回复  |  直到 7 年前
        1
  •  4
  •   stinger    7 年前

    最后,我通过添加属性解决了这个问题:

    spring.boot.admin.client.service-url=http://localhost:9000
    

    application.properties 配置。

    推荐文章