Spring Boot 2 health actuator default mapping

Boni García :

I'm using Spring Boot 2 M3 actuators. By default, the health endpoint is mapped to /application/health.

  • Is it possible to change this path to /health?
Darren Forsythe :

See this documentation for Spring Boot 2.0.0,

https://docs.spring.io/spring-boot/docs/2.0.0.M4/reference/htmlsingle/#production-ready-customizing-management-server-context-path

the property is,

management.context-path

I think this should work but cannot verify it right now. management.context-path=/

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=433365&siteId=1