From d2c760fa10cff2f8c7bdc1d9ed26e238bef2b3fb Mon Sep 17 00:00:00 2001 From: jiangjiazhi Date: Sun, 1 May 2016 17:59:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/base/ExceptionHandlerController.java | 25 ++++++++++------------ 1 file changed, 11 insertions(+), 14 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 b30f6ad..a60ec09 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 @@ -1,15 +1,13 @@ package com.lyms.platform.common.base; -import java.util.HashMap; -import java.util.List; -import java.util.Map; - -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - +import com.lyms.platform.common.constants.ErrorCodeConstants; import com.lyms.platform.common.core.resolve.MessageResolver; +import com.lyms.platform.common.exception.BusinessException; +import com.lyms.platform.common.exception.ParameterException; +import com.lyms.platform.common.exception.TokenException; import com.lyms.platform.common.result.BaseResponse; -import org.apache.commons.collections.CollectionUtils; +import com.lyms.platform.common.utils.ExceptionUtils; +import com.lyms.platform.common.utils.JsonUtil; import org.springframework.aop.AopInvocationException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataAccessResourceFailureException; @@ -23,12 +21,11 @@ import org.springframework.web.bind.annotation.ExceptionHandler; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.bind.annotation.ResponseStatus; -import com.lyms.platform.common.constants.ErrorCodeConstants; -import com.lyms.platform.common.exception.BusinessException; -import com.lyms.platform.common.exception.ParameterException; -import com.lyms.platform.common.exception.TokenException; -import com.lyms.platform.common.utils.ExceptionUtils; -import com.lyms.platform.common.utils.JsonUtil; +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.HashMap; +import java.util.List; +import java.util.Map; /** * spring mvc 异常处理机制 -- 1.8.3.1