
本文共 1115 字,大约阅读时间需要 3 分钟。
������������������������������������������������������������������������������������������������������������������
������������������@Pointcut���������������������������������������������������������
public class MynewAspect { @Pointcut("execution(public * calculator.CalculatorImpl.*(..))") public void decare(){} @Before("decare()") public void before(JoinPoint joinPoint){ System.out.println("���������"+joinPoint.getSignature().getName()); }}
������������������������������������������������������������������������������������������������
public class MyAspect { @Before("calculator.MynewAspect.decare()") public void before(JoinPoint joinPoint){ System.out.println("���������"+Arrays.asList(joinPoint.getArgs())); }}
���������
������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������@After���@Around���������������������������������������������
发表评论
最新留言
关于作者
