62

说说 Spring AOP 中 @Aspect 的高级用法-Java邵先生的博客

 5 years ago
source link: http://blog.51cto.com/13904503/2177865
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1 切点复合运算支持在切点定义中加入以下运算符进行复合运算:运算符说明&&与运算。!非运算。||或运算。2 切点命名一般情况下,切点是直接声明在需要增强方法处,这种切点的声明方式称为匿名切点,匿名切点只能在声明处被使用 。  如果希望在其它地方可以重用这个切点,我们可以通过 @Pointcut 注解及切面类方法来命名它。public class Nam

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK