我需要匹配 abc.cde.A.fun(cv.bc.F f,Map<String,String> map)方法,然后切面类中内容如下:
@Aspect
@Component
public class Inte {
@Pointcut("execution(* abc.cde.A.fun(..))")
public void pointcut() {
//
}
@Before("pointcut()")
public void bef() {
System.out.println("before ---------called.......");
}
}
以上, 当A#fun方法被调用的时候并没有进入bef方法, 然后我修改了上面Pointcut表达式为:
execution(* *.*(..)) 则所有方法调用都会触发bef切面方法, 所以我spring配置应该是没有问题的.
第一次使用, 麻烦大家帮我看看 谢谢!!!