The default Eureka instance configuration doesn't take the ${management.context-path} Spring Boot property into account when registering the instance with the Eureka Server.
See org.springframework.cloud.netflix.eureka.EurekaInstanceConfigBean
, corresponding properties should probably have the @Value
annotation on them.
A workaround is to set the path explicitly as follows:
eureka:
instance:
statusPageUrlPath: ${management.context-path}/info
healthCheckUrlPath: ${management.context-path}/health