Reputation: 4868
I'm using Spring Boot 2 M3 actuators. By default, the health endpoint is mapped to /application/health
.
/health
?Upvotes: 12
Views: 22328
Reputation: 978
In your application.properties file add this to set the base path to '/'
management.endpoints.web.base-path=/
Path will now be '/health'
Edit: Alternatively if you are using YAML use:
management:
endpoints:
web:
base-path: /
Upvotes: 19
Reputation: 4944
FYI as of Spring Boot 2.0.0.RELEASE the default health endpoint is /actuator/health
Upvotes: 12
Reputation: 11411
See this documentation for Spring Boot 2.0.0,
the property is,
management.context-path
I think this should work but cannot verify it right now.
management.context-path=/
Upvotes: 5
Reputation: 2776
Yes, it is endpoints.health.path
.
Update
Sorry, I understood like you want to change health to something else.
If you want change /application/health to /health, then you should use endpoints.jmx.domain
. Or change path of your application to ROOT.
See
Upvotes: 0