springboot2.2管理端点不能与外部jetty一起工作

bwitn5fc  于 2021-07-23  发布在  Java
关注(0)|答案(1)|浏览(449)

从springboot2.0.4迁移到springboot2.2.13后,管理端口与服务器端口不同,管理端点停止工作。看起来不同的管理端口本身没有打开进行侦听。
当作为一个战争部署到外部jetty时,它不起作用,但当作为嵌入式jetty运行时,它确实工作得很好。
以下是yml的相关部分:

management:
  endpoint:
    health:
      show-details: "ALWAYS"
  endpoints:
    web:
      exposure:
        include: health
      base-path: /manage
    enabled-by-default: true
  server:
    port: 7080
68bkxrlz

68bkxrlz1#

当部署到外部容器时,spring boot不支持在单独的端口上运行管理服务器。如果希望管理端点在单独的端口上可用,则应使用嵌入式web服务器。

相关问题