Commit d2c760fa10cff2f8c7bdc1d9ed26e238bef2b3fb
1 parent
e67cb08fe4
Exists in
master
and in
1 other branch
增加权限
Showing 1 changed file with 11 additions and 14 deletions
platform-common/src/main/java/com/lyms/platform/common/base/ExceptionHandlerController.java
View file @
d2c760f
| 1 | 1 | package com.lyms.platform.common.base; |
| 2 | 2 | |
| 3 | -import java.util.HashMap; | |
| 4 | -import java.util.List; | |
| 5 | -import java.util.Map; | |
| 6 | - | |
| 7 | -import javax.servlet.http.HttpServletRequest; | |
| 8 | -import javax.servlet.http.HttpServletResponse; | |
| 9 | - | |
| 3 | +import com.lyms.platform.common.constants.ErrorCodeConstants; | |
| 10 | 4 | import com.lyms.platform.common.core.resolve.MessageResolver; |
| 5 | +import com.lyms.platform.common.exception.BusinessException; | |
| 6 | +import com.lyms.platform.common.exception.ParameterException; | |
| 7 | +import com.lyms.platform.common.exception.TokenException; | |
| 11 | 8 | import com.lyms.platform.common.result.BaseResponse; |
| 12 | -import org.apache.commons.collections.CollectionUtils; | |
| 9 | +import com.lyms.platform.common.utils.ExceptionUtils; | |
| 10 | +import com.lyms.platform.common.utils.JsonUtil; | |
| 13 | 11 | import org.springframework.aop.AopInvocationException; |
| 14 | 12 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | 13 | import org.springframework.dao.DataAccessResourceFailureException; |
| ... | ... | @@ -23,12 +21,11 @@ |
| 23 | 21 | import org.springframework.web.bind.annotation.ResponseBody; |
| 24 | 22 | import org.springframework.web.bind.annotation.ResponseStatus; |
| 25 | 23 | |
| 26 | -import com.lyms.platform.common.constants.ErrorCodeConstants; | |
| 27 | -import com.lyms.platform.common.exception.BusinessException; | |
| 28 | -import com.lyms.platform.common.exception.ParameterException; | |
| 29 | -import com.lyms.platform.common.exception.TokenException; | |
| 30 | -import com.lyms.platform.common.utils.ExceptionUtils; | |
| 31 | -import com.lyms.platform.common.utils.JsonUtil; | |
| 24 | +import javax.servlet.http.HttpServletRequest; | |
| 25 | +import javax.servlet.http.HttpServletResponse; | |
| 26 | +import java.util.HashMap; | |
| 27 | +import java.util.List; | |
| 28 | +import java.util.Map; | |
| 32 | 29 | |
| 33 | 30 | /** |
| 34 | 31 | * spring mvc 异常处理机制 |