5.6选择要使用的AOP声明样式
5.6.1 Spring AOP 还是全部使用 AspectJ?
5.6.2 @AspectJ 或者 Spring AOP XML?
@Pointcut("execution(* get*())")
public void propertyAccess() {}
@Pointcut("execution(org.xyz.Account+ *(..))")
public void operationReturningAnAccount() {}
@Pointcut("propertyAccess() && operationReturningAnAccount()")
public void accountPropertyAccess() {}最后更新于
这有帮助吗?