【发布时间】:2016-07-21 14:42:35
【问题描述】:
我有来自不同包的多个类,它们扩展了 Super 类。 我想创建一个 AOP 切入点,它匹配所有扩展 Super 的类中的所有方法。 我试过这个:
@Around("within(com.mypackage.that.contains.super..*)")
public void aroundAllEndPoints(ProceedingJoinPoint joinPoint) throws Throwable {
LOGGER.info("before Proceed ");
joinPoint.proceed();
LOGGER.info("after Proceed");
}
但它不起作用。 有什么建议吗?
【问题讨论】:
标签: java spring-aop pointcut