Skip to content

Commit

Permalink
Merge pull request #10 from twelvet-s/master
Browse files Browse the repository at this point in the history
LocalVariableTableParameterNameDiscoverer for removal导致的无法正常使用
  • Loading branch information
lltx authored Nov 27, 2023
2 parents 389e029 + d53cec7 commit fcd1340
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,17 @@
* @date 2020/9/25
*/

import java.lang.reflect.Method;

import com.pig4cloud.plugin.idempotent.annotation.Idempotent;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.reflect.MethodSignature;
import org.springframework.core.LocalVariableTableParameterNameDiscoverer;
import org.springframework.core.DefaultParameterNameDiscoverer;
import org.springframework.core.ParameterNameDiscoverer;
import org.springframework.expression.Expression;
import org.springframework.expression.spel.standard.SpelExpressionParser;
import org.springframework.expression.spel.support.StandardEvaluationContext;

import java.lang.reflect.Method;

/**
* @author lengleng
* <p>
Expand All @@ -25,7 +26,7 @@ public class ExpressionResolver implements KeyResolver {

private static final SpelExpressionParser PARSER = new SpelExpressionParser();

private static final LocalVariableTableParameterNameDiscoverer DISCOVERER = new LocalVariableTableParameterNameDiscoverer();
private static final ParameterNameDiscoverer DISCOVERER = new DefaultParameterNameDiscoverer();

@Override
public String resolver(Idempotent idempotent, JoinPoint point) {
Expand Down

0 comments on commit fcd1340

Please sign in to comment.