diff --git a/src/main/java/ltd/newbee/mall/controller/common/NewBeeMallExceptionHandler.java b/src/main/java/ltd/newbee/mall/controller/common/NewBeeMallExceptionHandler.java index 628307d8..7aba2acb 100644 --- a/src/main/java/ltd/newbee/mall/controller/common/NewBeeMallExceptionHandler.java +++ b/src/main/java/ltd/newbee/mall/controller/common/NewBeeMallExceptionHandler.java @@ -22,6 +22,7 @@ public Object handleException(Exception e, HttpServletRequest req) { if (e instanceof NewBeeMallException) { result.setMessage(e.getMessage()); } else { + e.printStackTrace(); result.setMessage("未知异常,请联系管理员"); } //检查请求是否为ajax, 如果是 ajax 请求则返回 Result json串, 如果不是 ajax 请求则返回 error 视图