From 51a370f69ecbae30598182d66c3dbc600e3ca932 Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Tue, 3 May 2016 18:39:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=80=80=E5=87=BA=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/lyms/platform/common/base/ExceptionHandlerController.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 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 bbc1314..a106c3e 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 @@ -116,12 +116,13 @@ public class ExceptionHandlerController { @ResponseStatus(HttpStatus.OK) @ExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException.class) public Map handlMissingServletRequestParameter(HttpServletResponse httpServletResponse, - MissingServletRequestParameterException missRequestParameter) { + MissingServletRequestParameterException missRequestParameter, + HttpServletRequest httpServletRequest) { setHttpResponseHeader(httpServletResponse); Map resultMap = new HashMap<>(); resultMap.put("errorcode", ErrorCodeConstants.PARAMETER_ERROR); resultMap.put("errormsg", missRequestParameter.getMessage()); - ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter."); + ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter."+httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); return resultMap; } @@ -143,7 +144,7 @@ public class ExceptionHandlerController { Map resultMap = new HashMap<>(); resultMap.put("errorcode", ErrorCodeConstants.SYSTEM_ERROR); resultMap.put("errormsg", "服务器异常."); - ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " + httpServletRequest.getQueryString()); + ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " +httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); return resultMap; } -- 1.8.3.1