I have springboot based restful web-service. I have CryptoResponseBodyAdvice to capture the response from controller and create JWE out of response body and send JWE as API response. public class CryptoResponseBodyAdvice implements ResponseBodyAdvice
Trouble comes when some exception occurs and request reaches the exception resolver. In such exception scenario the response is not interfered by CryptoResponseBodyAdvice public class ExceptionResolver extends ResponseEntityExceptionHandler
Can you please suggest what kind of ControllerAdvice or something else will help me capture the responses from ResponseEntityExceptionHandler so I can create JWE out of that.