From e6b8893c28871cb46409377f52665979c9ba31be Mon Sep 17 00:00:00 2001 From: cheney <1251790704@qq.com> Date: Mon, 20 Mar 2023 17:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=BC=96=E7=A0=81=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iasf/common/exception/handler/RestExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/huoran/iasf/common/exception/handler/RestExceptionHandler.java b/src/main/java/com/huoran/iasf/common/exception/handler/RestExceptionHandler.java index ee3fc49..1228728 100644 --- a/src/main/java/com/huoran/iasf/common/exception/handler/RestExceptionHandler.java +++ b/src/main/java/com/huoran/iasf/common/exception/handler/RestExceptionHandler.java @@ -61,7 +61,7 @@ public class RestExceptionHandler { * 自定义全局异常处理 */ @ExceptionHandler(value = BusinessException.class) - @ResponseStatus(HttpStatus.NOT_FOUND) + @ResponseStatus(HttpStatus.UNAUTHORIZED) public R businessExceptionHandler(BusinessException e) { log.error("Exception,exception:{}", e, e); BaseResponseCode em = e.getBaseResponseCode();