spring-framework / org.springframework.web.servlet.config.annotation / WebMvcConfigurationSupport / handlerExceptionResolver

handlerExceptionResolver

@Bean open fun handlerExceptionResolver(): HandlerExceptionResolver

Returns a HandlerExceptionResolverComposite containing a list of exception resolvers obtained either through #configureHandlerExceptionResolvers(List) or through #addDefaultHandlerExceptionResolvers(List).

Note: This method cannot be made final due to CGLib constraints. Rather than overriding it, consider overriding #configureHandlerExceptionResolvers(List), which allows providing a list of resolvers.