Skip to main content

HandlerExceptionResolver

Learn HandlerExceptionResolver (DispatcherServlet, Spring MVC) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Fresher Notes HandlerExceptionResolver is the strategy that turns an exception thrown during request handling into a response, such as an error page or a JSON body. Default chain : ExceptionHandlerExceptionResolver (for @ExceptionHandler ), ResponseStatusExceptionResolver and DefaultHandlerExceptionResolver . Use : you normally write @ExceptionHandler methods in a @ControllerAdvice class and let Spring wire the resolver.

More lessons in DispatcherServlet