From 34d10d4c7c9c4bc1052ecff03d085fa721dbe705 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Tue, 29 Aug 2023 17:21:04 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):?= =?UTF-8?q?=20=E6=9B=BF=E6=8D=A2LocalVariableTableParameterNameDiscoverer?= =?UTF-8?q?=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/io/metersphere/gateway/log/aspect/MsLogAspect.java | 4 ++-- .../java/io/metersphere/notice/sender/SendNoticeAspect.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/framework/gateway/src/main/java/io/metersphere/gateway/log/aspect/MsLogAspect.java b/framework/gateway/src/main/java/io/metersphere/gateway/log/aspect/MsLogAspect.java index 2dd4253398..8c4fcc35e6 100644 --- a/framework/gateway/src/main/java/io/metersphere/gateway/log/aspect/MsLogAspect.java +++ b/framework/gateway/src/main/java/io/metersphere/gateway/log/aspect/MsLogAspect.java @@ -12,7 +12,7 @@ import org.aspectj.lang.annotation.AfterReturning; import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; -import org.springframework.core.LocalVariableTableParameterNameDiscoverer; +import org.springframework.core.StandardReflectionParameterNameDiscoverer; import org.springframework.expression.EvaluationContext; import org.springframework.expression.Expression; import org.springframework.expression.ExpressionParser; @@ -37,7 +37,7 @@ public class MsLogAspect { /** * 将方法参数纳入Spring管理 */ - LocalVariableTableParameterNameDiscoverer discoverer = new LocalVariableTableParameterNameDiscoverer(); + StandardReflectionParameterNameDiscoverer discoverer = new StandardReflectionParameterNameDiscoverer(); @Resource private OperatingLogService operatingLogService; diff --git a/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java b/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java index 47159dd7c5..6deda9fb9b 100644 --- a/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java +++ b/framework/sdk-parent/sdk/src/main/java/io/metersphere/notice/sender/SendNoticeAspect.java @@ -14,7 +14,7 @@ import org.aspectj.lang.annotation.Aspect; import org.aspectj.lang.annotation.Before; import org.aspectj.lang.annotation.Pointcut; import org.aspectj.lang.reflect.MethodSignature; -import org.springframework.core.LocalVariableTableParameterNameDiscoverer; +import org.springframework.core.StandardReflectionParameterNameDiscoverer; import org.springframework.expression.EvaluationContext; import org.springframework.expression.Expression; import org.springframework.expression.ExpressionParser; @@ -37,7 +37,7 @@ public class SendNoticeAspect { private AfterReturningNoticeSendService afterReturningNoticeSendService; private ExpressionParser parser = new SpelExpressionParser(); - private LocalVariableTableParameterNameDiscoverer discoverer = new LocalVariableTableParameterNameDiscoverer(); + private StandardReflectionParameterNameDiscoverer discoverer = new StandardReflectionParameterNameDiscoverer(); private ThreadLocal source = new ThreadLocal<>(); @Pointcut("@annotation(io.metersphere.notice.annotation.SendNotice)")