Search code examples
javaspringspring-bootspring-boot-actuator

Spring Boot 2 health actuator default mapping


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?

Solution

  • 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=/