I experience a strange behavior of actuators.
I have set up a spring boot 2.1 application with Jersey.
I extended the application, so that actuators like health are working.
Within the JerseyConfig i added property(FILTER_FORWARD_ON_404, true);
The jersey filtering is configured as follows spring.jersey.type=filter
The actuator endpoint works as expected so actuator/health
returns a 200 and the expected response, but in fact jersey throws an NotFoundexception internally, which can seen in logs and be catched with javax.ws.rs.ext.ExceptionMapper<Throwable>
but the exception seems to be ignored (which is achieved by FILTER_FORWARD_ON_404
, i believe).
Is there a way to avoid, that the exception is thrown?
I expected 404 logs in case of actuator call, but actually they are logged