Spring AOP中 pointcut expression表达式解析

时间:2014-08-28 11:00:29   收藏:0   阅读:205

任意公共方法的执行:
  execution(public * *(..))
任何一个以“set”开始的方法的执行:
  execution(* set*(..))
AccountService 接口的任意方法的执行:
  execution(* com.xyz.service.AccountService.*(..))
定义在service包里的任意方法的执行:
  execution(* com.xyz.service.*.*(..))
定义在service包和所有子包里的任意类的任意方法的执行:
  execution(* com.xyz.service..*.*(..))
定义在pointcutexp包和所有子包里的JoinPointObjP2类的任意方法的执行:
  execution(* com.test.spring.aop.pointcutexp..JoinPointObjP2.*(..))")

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!