修改`base-path`

时间:2019-05-23 09:22:05

标签: spring-boot spring-boot-actuator

在修改actuator之后,我正在努力将主/actuator端点映射到Spring Boot 2(特别是2.1.5)中的base-path路径。

我正在从Spring Boot 1.5升级到Spring Boot 2(2.1.5),并希望执行器端点位于与Spring Boot 1.5相同的路径上。我已将management.endpoints.web.base-path=/设置为将所有端点移至根。

如何将主要(所有执行器端点的目录)端点映射回/actuator路径?

当前配置:

management:
  endpoints:
    web:
      base-path: /
      exposure:
        include: '*'

0 个答案:

没有答案
相关问题