spring 注解aop切入点表达式怎么排除某些方法

来源:互联网 发布:科比10年总决赛数据 编辑:程序博客网 时间:2024/05/16 12:45
@Pointcut("!execution(* aa.bb..*.set*(..)) and execution(* aa.bb..*.*(..)) ")

如果是这种形式的法执行了很多其他方法         比如init

可以 把   and  换成 &&  就可以解决了。

@Pointcut("execution(* aa.bb..*.*(..)) and !execution(* aa.bb..*.set*(..)) ")
这种形式还是都执行了 
原创粉丝点击