|
|
|
@ -9,6 +9,7 @@ import org.springframework.stereotype.Controller;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
import ${domain}.frame.auth.LocalData;
|
|
|
|
|
import ${domain}.frame.utils.LogUtil;
|
|
|
|
|
import ${domain}.frame.utils.RequestUtil;
|
|
|
|
|
import ${domain}.module.wsys.mgr.LogerrManager;
|
|
|
|
|
|
|
|
|
@ -67,8 +68,9 @@ public class GlobalErrorController extends BasicErrorController {
|
|
|
|
|
LogerrManager logerrManager = LocalData.getBean(LogerrManager.class);
|
|
|
|
|
logerrManager.addErr("系统错误", (String) model.get("message"), (String) model.get("trace"));
|
|
|
|
|
modelAndView.setViewName("500");
|
|
|
|
|
} catch (Exception ignored) {
|
|
|
|
|
|
|
|
|
|
LogUtil.dumpException((String) model.get("trace"));
|
|
|
|
|
} catch (Exception ex) {
|
|
|
|
|
LogUtil.dumpException(ex);
|
|
|
|
|
} finally {
|
|
|
|
|
modelAndView.setViewName("500");
|
|
|
|
|
}
|
|
|
|
|