management.security.enabled 过时

Spring boot 2.0

management.security.enabled=true

management:
 security:
  enabled:true

可以采用

management.endpoints.web.exposure.include=

代替的全部放开请使用*,或把需要开放的接口端点使用“,”隔开,如:env,health

yaml 的配置*请加上“"”(引号)如下

management:
  endpoints:
    web:
      exposure:
        include: "*"

更多配置信息请参考spring-boot endpoints

你可能感兴趣的:(Spring,boot,actuator)