Commit f84a5ddb authored by 王飞's avatar 王飞

Merge branch 'wangfei' into 'dev'

Wangfei

See merge request !51
parents d296bfae bf538617
...@@ -93,7 +93,7 @@ public class GlobalExceptionHandler ...@@ -93,7 +93,7 @@ public class GlobalExceptionHandler
{ {
String requestURI = request.getRequestURI(); String requestURI = request.getRequestURI();
log.error("请求地址'{}',发生未知异常.", requestURI, e); log.error("请求地址'{}',发生未知异常.", requestURI, e);
return AjaxResult.error(e.getMessage()); return AjaxResult.error("发生未知系统异常请与管理员联系"); // 修改统一异常返回的信息,避免暴露服务端细节
} }
/** /**
...@@ -104,7 +104,7 @@ public class GlobalExceptionHandler ...@@ -104,7 +104,7 @@ public class GlobalExceptionHandler
{ {
String requestURI = request.getRequestURI(); String requestURI = request.getRequestURI();
log.error("请求地址'{}',发生系统异常.", requestURI, e); log.error("请求地址'{}',发生系统异常.", requestURI, e);
return AjaxResult.error(e.getMessage()); return AjaxResult.error("发生未知系统异常请与管理员联系"); // 修改统一异常返回的信息,避免暴露服务端细节
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment