// Configuration for "global" @ExceptionHandler methods
// See ~.exceptionhandler package
@Override
public void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) {
ExtendedExceptionHandlerExceptionResolver customResolver = new ExtendedExceptionHandlerExceptionResolver();
customResolver.setExceptionHandler(new GlobalExceptionHandler());
customResolver.setMessageConverters(getMessageConverters());
customResolver.afterPropertiesSet();
exceptionResolvers.add(customResolver);
}