Please help me to send JSON Response for the @ExceptionHandler. As far as i understand i need to configure the view resolver which handles response for this method. Please have a look at my code. Controller Advice:Please help me to send JSON Response for the @E