From 6fa3db2df402f52f4a9d6f9b874536926aae3871 Mon Sep 17 00:00:00 2001 From: yulichang <570810310@qq.com> Date: Tue, 4 Apr 2023 16:22:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=BC=82=E5=B8=B8=E6=8F=90?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../github/yulichang/interceptor/MPJInterceptor.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java b/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java index cb8b61a..88d6bd9 100644 --- a/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java +++ b/mybatis-plus-join-core/src/main/java/com/github/yulichang/interceptor/MPJInterceptor.java @@ -377,11 +377,18 @@ public class MPJInterceptor implements Interceptor { @Override public Object plugin(Object target) { - return Plugin.wrap(target, this); + try { + return Interceptor.super.plugin(target); + } catch (Exception e) { + return Plugin.wrap(target, this); + } } @Override public void setProperties(Properties properties) { - // NOP + try { + Interceptor.super.setProperties(properties); + } catch (Exception ignored) { + } } }