From 579b82dda1e95af30cec66c1b7fe2409221c43d4 Mon Sep 17 00:00:00 2001 From: "udf_admin@163.com" Date: Sat, 11 Nov 2017 18:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A7=84=E8=8C=83=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../itkk/udf/core/exception/handle/ExceptionController.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/udf-starter-core/src/main/java/org/itkk/udf/core/exception/handle/ExceptionController.java b/udf-starter-core/src/main/java/org/itkk/udf/core/exception/handle/ExceptionController.java index 847db0c..fe27121 100644 --- a/udf-starter-core/src/main/java/org/itkk/udf/core/exception/handle/ExceptionController.java +++ b/udf-starter-core/src/main/java/org/itkk/udf/core/exception/handle/ExceptionController.java @@ -141,7 +141,6 @@ public class ExceptionController extends AbstractErrorController { * 获得RestResponse * * @param request request - * @param request response * @param status status * @param body body * @return RestResponse @@ -159,9 +158,9 @@ public class ExceptionController extends AbstractErrorController { //ZuulException异常特殊处理,去除ZuulException的包裹 (不用instanceof的原因是不想因为这里的判断而引入zuul的依赖在core包中) if (exception.getClass().getName().equals("com.netflix.zuul.exception.ZuulException")) { //NOSONAR if (exception.getCause() instanceof PermissionException) { - status = HttpStatus.FORBIDDEN; + status = HttpStatus.FORBIDDEN; //NOSONAR } else if (exception.getCause() instanceof AuthException) { - status = HttpStatus.UNAUTHORIZED; + status = HttpStatus.UNAUTHORIZED; //NOSONAR } errorResult = ExceptionHandle.buildError(applicationConfig, exception.getCause()); } else {