I'm working with the Spring Boot 2.2.9.RELEASE. I have the main app and some plain starter (which just uses spring-actuator
functionality) with some properties in its some-starter/src/main/resources/application.properties
file:
management.server.port=9000
management.server.ssl.enabled=false
management.endpoints.enabled-by-default=false
management.endpoint.health.enabled=true
management.endpoints.web.base-path=/
management.endpoints.web.path-mapping.health=health
I've imported the starter into my main app and I believe that the healthcheck endpoint should work with the port 9000
and with the path /health
(smth like that localhost:9000/health
).
But it doesn't. However, it works in case of the same properties in my main app main-app/src/main/resources/application.properties
.
Is it problem with the property overriding in Spring Boot? Should i configure my resources via something like maven-resources-plugin
?