【问题标题】:Integration eureka and SBA in the same project在同一个项目中集成 eureka 和 SBA
【发布时间】:2020-05-30 08:55:51
【问题描述】:

我打算将 eureka 和 Spring Boot Admin 集成到同一个项目中。

当我使用spring boot 版本2.1.14.RELEASEspring boot admin 版本2.1.6spring cloud 版本Greenwich.SR5 时,它工作正常。

但是当我使用spring boot版本2.3.0.RELEASEspring boot admin版本2.2.3spring cloud版本Hoxton.SR4时,浏览器控制台出现了一些错误。

这里是演示代码。 demo.zip

【问题讨论】:

    标签: spring-boot spring-boot-admin


    【解决方案1】:

    如果您的application.properties 文件中有以下属性:

    server.servlet.context-path
    

    也试试添加这个:

    eureka.instance.metadata-map.management.context-path: ${server.servlet.context-path}/actuator
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-06
      • 1970-01-01
      • 2016-05-28
      • 2017-09-08
      • 2012-04-10
      • 2012-09-23
      • 1970-01-01
      • 2019-09-07
      相关资源
      最近更新 更多