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
I believe, the answer by Sharan De Silva is not correct. I just spent several hours on a identical issue, because the property name is different. Should be:
management:
endpoints:
web:
exposure:
include: 'health,info,metrics,customendpoint'
Here's the official reference: https://docs.spring.io/spring-boot/docs/current/reference/html/production-ready-endpoints.html#production-ready-endpoints-exposing-endpoints
management.endpoints.web.exposure.include={ENDPOINT-NAME}
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: '*'