I have spring boot application which has both Jersey endpoints and Spring mvc endpoints. I would like to intercept request and response from a single point for both types of enpoint.
So far I know there is three option to do that. Those are- Filter
, Spring Interceptor
and Spring @ControllerAdvice
. Among them Interceptor
and ControllerAdvice
is only applicable for Spring endpoints and it doesn't work for Jersey endpoints. Only the Filter
is so far working for both endpoints. Is there any other way I can intercept request/response both for Jersey and Spring mvc?
Thanks in advance.