diff --git a/platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java b/platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java index a35747e..6289a19 100644 --- a/platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java +++ b/platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java @@ -126,7 +126,7 @@ public class ExceptionHandlerController { Map resultMap = new HashMap<>(); resultMap.put("errorcode", ErrorCodeConstants.PARAMETER_ERROR); resultMap.put("errormsg", missRequestParameter.getMessage()); - ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter."+httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); + ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter." + httpServletRequest.getRequestURI() + "?" + httpServletRequest.getQueryString()); return resultMap; } @@ -150,7 +150,9 @@ public class ExceptionHandlerController { Map resultMap = new HashMap<>(); resultMap.put("errorcode", ErrorCodeConstants.SYSTEM_ERROR); resultMap.put("errormsg", "服务器异常."); - ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " +httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); + if(!e.getClass().getName() .equals("org.apache.catalina.connector.ClientAbortException") ){ + ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " +httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); + } return resultMap; }