From 96abd3efa892a9386ede6e8eef122ab555ca8d28 Mon Sep 17 00:00:00 2001 From: lkw2731938298 <133633447+lkw2731938298@users.noreply.github.com> Date: Fri, 25 Apr 2025 14:31:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E8=A7=A3=E9=87=8A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../market/common/advice/ExceptionControllerAdvice.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/superMarket-backend/src/main/java/com/shanzhu/market/common/advice/ExceptionControllerAdvice.java b/superMarket-backend/src/main/java/com/shanzhu/market/common/advice/ExceptionControllerAdvice.java index 69c360e..fec8bd2 100644 --- a/superMarket-backend/src/main/java/com/shanzhu/market/common/advice/ExceptionControllerAdvice.java +++ b/superMarket-backend/src/main/java/com/shanzhu/market/common/advice/ExceptionControllerAdvice.java @@ -19,13 +19,13 @@ import org.springframework.web.bind.annotation.RestControllerAdvice; /** * 统一异常处理类的基类 */ -// 定义类的注释,说明该类的作用 +定义类的注释,说明该类的作用 @RestControllerAdvice // 声明该类为全局异常处理类,返回JSON格式的响应 public class ExceptionControllerAdvice { -// 定义全局异常处理类 +定义全局异常处理类 @ExceptionHandler(RuntimeException.class) // 声明方法处理RuntimeException类型的异常