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)")