feat: 未知异常改为报内部错误
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.wfc.common.security.handler;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.validation.BindException;
|
||||
@@ -22,6 +21,8 @@ import org.wfc.common.core.utils.StringUtils;
|
||||
import org.wfc.common.core.utils.html.EscapeUtil;
|
||||
import org.wfc.common.core.web.domain.AjaxResult;
|
||||
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
|
||||
/**
|
||||
* 全局异常处理器
|
||||
*
|
||||
@@ -111,7 +112,7 @@ public class GlobalExceptionHandler
|
||||
{
|
||||
String requestURI = request.getRequestURI();
|
||||
log.error("Requesting address '{}', an unknown exception occurred.", requestURI, e);
|
||||
return AjaxResult.error(e.getMessage());
|
||||
return AjaxResult.error(MessageUtils.message("common.system.error"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user