I have enabled actuator for a spring boot application and I'm able to access it using http://localhost:8080/actuator/ --- This is working!
But I'm trying allow access using application path; For example: http://localhost:8080/my-app/actuator/
Changing the following doesn't help either.
management.endpoints.web.base-path = my-app
Accessing this URL http://localhost:8080/my-app/actuator/ --gives 404
As I'm deploying this particular application in Docker swarm behind a Spring gateway, i should allow this access.
I guess you should be trying to use the
server.servlet.context-pathproperty and setting it to/my-appand then remove your@ApplicationPath("/my-app")As suggested in the documentation of
management.endpoints.web.base-pathproperty :