Spring Boot 2.0 Not Registering Custom Actuator Endpoint

前端 未结 3 822
梦如初夏
梦如初夏 2021-01-20 06:15

I\'ve recently upgraded a project from Spring Boot 1.5.1 to 2.0.0 and our custom actuator endpoint is not getting registered. I\'ve tried the following endpoint migration gu

3条回答
  •  [愿得一人]
    2021-01-20 07:11

    You need to expose your custom endpoint by adding this to your application.yml file.

    management:
      endpoints:
        web:
          expose: 'customendpoint,info,health'
          exclude: env
    

    If you want to expose all your endpoints then change it as expose: '*'

提交回复
热议问题