From 7cbd2696128e671721e931cb158b96de1614d622 Mon Sep 17 00:00:00 2001 From: chenjiahe <763432473@qq.com> Date: 星期五, 14 七月 2023 15:14:58 +0800 Subject: [PATCH] 拦截器优化 --- src/main/java/com/hx/exception/ServiceException.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/hx/exception/ServiceException.java b/src/main/java/com/hx/exception/ServiceException.java index f76edde..eeeb4e8 100644 --- a/src/main/java/com/hx/exception/ServiceException.java +++ b/src/main/java/com/hx/exception/ServiceException.java @@ -27,8 +27,11 @@ this.code = code; } - //@Override - public int getCode() { - return this.code; + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; } } -- Gitblit v1.8.0