I'm using Spring boot 1.5.4.RELEASE with Jersey, I want to use Actuator to expose the metrics of my endpoints, the problem is that it will be a new release so I don't want to change the path of my endpoints because there are already some applications using them, lets see one of them:
localhost:8080/employees/{employeeId}
In order to configure actuator with Jersey I have to make a change to my JerseyConfig class to:
@Component
@ApplicationPath("/api")
public class JerseyConfig extends ResourceConfig{...}
If I make the previous change the actuator endpoints work properly but my endpoint will be :
localhost:8080/api/employees/{employeeId}
And it will require changes in the applications that are consuming my endpoints.
The question is how can I make the actuator endpoints work without change the Jersey's application path.
Additional notes:
- I'm using also jolokia to expose my metrics vía REST in order that my telegraf plugin can consume them.
- I don't want to expose the actuator endpoints in a different port
- The question is not duplicated because all the questions i found in Stackoverflow says that I have to change the basepath of jersey both i didn't found how to make it work without change it
- The application will be deployed as a war file in an external tomcat
Please let me know if you need additional details
------------------------ Not duplicated question This question is not duplicated with Spring Boot 2 Actuator endpoints inaccessible with Jersey because I can't change the Jersey's base path because there are already many applications consuming my endpoints so I need to change the actuator base path and make it work together with Jersey