|
|
|
@ -37,13 +37,6 @@ public class WebMvcConfig implements WebMvcConfigurer {
|
|
|
|
|
@Override
|
|
|
|
|
public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
|
|
|
|
|
super.afterCompletion(request, response, handler, ex);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 这边收集Exceptionxian相对GlobalErrorController低,未进入控制器前抛出的异常无法收集,例如Filter。
|
|
|
|
|
*/
|
|
|
|
|
if (ex != null) {
|
|
|
|
|
LogUtil.dumpException(ex);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}).addPathPatterns("/**").excludePathPatterns(staticPath);
|
|
|
|
|