From 7a73a53dcebdf602be03080ff9f72b69fe501985 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Tue, 10 May 2016 11:29:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E6=8E=89=E5=AE=A2=E6=88=B7?= =?UTF-8?q?=E7=AB=AF=E5=8F=96=E6=B6=88=E8=BF=9E=E6=8E=A5=E7=9A=84=E5=BC=82?= =?UTF-8?q?=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/platform/common/base/ExceptionHandlerController.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 1.8.3.1