use exceptionMapper for restcontroller so that jersey and restcontroller can coexist

624 Views Asked by At

I was using spring boot with Jersey 1. Used ExceptionMapper to handle the exceptions globally. Now we are planning to migrate to spring MVC for restful purpose. So, changing few of the endpoints to use dispatcher servlet. Is there any way to handle all exceptions using exceptionMapper. There exists ControllerAdvice to handle exceptions globally for spring mvc but is there anyway I can use ExceptionMapper providers for time being?

Thank you

0

There are 0 best solutions below