Protokollfehler mit Stapelspuren Frühling
@Component
public class AppExceptionResolver extends AbstractHandlerExceptionResolver
{
private static final Logger logger = LoggerFactory.getLogger(AppExceptionResolver.class.getSimpleName());
@Override
protected ModelAndView doResolveException(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex)
{
logger.error("Application error in: [" + ex.getClass().getName() + "]", ex);
return null;
}
}
Mushy Mallard