Spring Boot 2 health actuator default mapping

FYI as of Spring Boot 2.0.0.RELEASE the default health endpoint is /actuator/health


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: /

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