Commit 51a370f69ecbae30598182d66c3dbc600e3ca932
1 parent
c67af71132
Exists in
master
and in
8 other branches
增加退出登录接口
Showing 1 changed file with 4 additions and 3 deletions
platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java
View file @
51a370f
| ... | ... | @@ -116,12 +116,13 @@ |
| 116 | 116 | @ResponseStatus(HttpStatus.OK) |
| 117 | 117 | @ExceptionHandler(org.springframework.web.bind.MissingServletRequestParameterException.class) |
| 118 | 118 | public Map handlMissingServletRequestParameter(HttpServletResponse httpServletResponse, |
| 119 | - MissingServletRequestParameterException missRequestParameter) { | |
| 119 | + MissingServletRequestParameterException missRequestParameter, | |
| 120 | + HttpServletRequest httpServletRequest) { | |
| 120 | 121 | setHttpResponseHeader(httpServletResponse); |
| 121 | 122 | Map<String, Object> resultMap = new HashMap<>(); |
| 122 | 123 | resultMap.put("errorcode", ErrorCodeConstants.PARAMETER_ERROR); |
| 123 | 124 | resultMap.put("errormsg", missRequestParameter.getMessage()); |
| 124 | - ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter."); | |
| 125 | + ExceptionUtils.catchException(missRequestParameter, "ExceptionHandlerController handlMissingServletRequestParameter."+httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); | |
| 125 | 126 | return resultMap; |
| 126 | 127 | } |
| 127 | 128 | |
| ... | ... | @@ -143,7 +144,7 @@ |
| 143 | 144 | Map<String, Object> resultMap = new HashMap<>(); |
| 144 | 145 | resultMap.put("errorcode", ErrorCodeConstants.SYSTEM_ERROR); |
| 145 | 146 | resultMap.put("errormsg", "服务器异常."); |
| 146 | - ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " + httpServletRequest.getQueryString()); | |
| 147 | + ExceptionUtils.catchException(e, "ExceptionHandlerController Exception. queryStr: " +httpServletRequest.getRequestURI() + "?"+httpServletRequest.getQueryString()); | |
| 147 | 148 | |
| 148 | 149 | return resultMap; |
| 149 | 150 | } |