@Override
public void configureHandlerExceptionResolvers(List<HandlerExceptionResolver> exceptionResolvers) {
ExtendedExceptionHandlerExceptionResolver customResolver = new ExtendedExceptionHandlerExceptionResolver();
customResolver.setExceptionHandler(new GlobalExceptionHandler());
customResolver.setMessageConverters(getMessageConverters());
customResolver.afterPropertiesSet();
exceptionResolvers.add(customResolver);
}
}