From d6469f158f37a1d12451ef7e02f08bf3df26b429 Mon Sep 17 00:00:00 2001 From: Bunny <1319900154@qq.com> Date: Thu, 14 Dec 2023 08:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=94=99=E8=AF=AF=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/inspectionProfiles/Project_Default.xml | 7 +++++++ .../java/cn/bunny/exception/GlobalExceptionHandler.java | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 .idea/inspectionProfiles/Project_Default.xml diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..18c7468 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,7 @@ + + + + \ No newline at end of file diff --git a/spzx-common/common-service/src/main/java/cn/bunny/exception/GlobalExceptionHandler.java b/spzx-common/common-service/src/main/java/cn/bunny/exception/GlobalExceptionHandler.java index 9435ef4..d43cc4b 100644 --- a/spzx-common/common-service/src/main/java/cn/bunny/exception/GlobalExceptionHandler.java +++ b/spzx-common/common-service/src/main/java/cn/bunny/exception/GlobalExceptionHandler.java @@ -12,7 +12,8 @@ public class GlobalExceptionHandler { // 全局异常处理 @ExceptionHandler(Exception.class) @ResponseBody - public Result error() { + public Result error(Exception exception) { + exception.printStackTrace(); return Result.build(null, ResultCodeEnum.SYSTEM_ERROR); }