http://blinkfox.com/shi-yong-spring-aoplai-tong-ji-fang-fa-de-zhi-xing-shi-jian/

spring-aop.xml

  1. @Component
  2. @Aspect
  3. public class AspectDef {
  4. //@Pointcut("execution(* com.test.spring.aop.pointcutexp..JoinPointObjP2.*(..))")
  5. //@Pointcut("within(com.test.spring.aop.pointcutexp..*)")
  6. //@Pointcut("this(com.test.spring.aop.pointcutexp.Intf)")
  7. //@Pointcut("target(com.test.spring.aop.pointcutexp.Intf)")
  8. //@Pointcut("@within(org.springframework.transaction.annotation.Transactional)")
  9. //@Pointcut("@annotation(org.springframework.transaction.annotation.Transactional)")
  10. @Pointcut("args(String)")
  11. public void pointcut1() {
  12. }
  13. @Before(value = "pointcut1()")
  14. public void beforeAdvice() {
  15. System.out.println("pointcut1 @Before...");
  16. }

最新文章

  1. 腾讯网2016回响中国:华清远见荣获2016年度知名IT培训品牌
  2. 按年、季度、月分组&&计算日期和时间的函数
  3. CSS入门
  4. iOS打电话、发短信
  5. c#字符串及数组操作
  6. MVC实现登录,增删改查之数据展示:JSP的EL表达式(二)
  7. jar包版本冲突,并且要保留两个版本都能使用
  8. 实用的PHP正则表达式
  9. windows下载安装requests
  10. Spring的事件处理
  11. Appium0.18.x迁移到Appium1.x须知事项(灰常实用,解答了本人几个疑问)
  12. POJ 1007
  13. JavaScript(第十九天)【DOM进阶】
  14. AngularJS进阶(二)AngularJS路由问题解决
  15. Python编程从入门到实践笔记——文件
  16. 【Selenium】【BugList9】windows环境,fp = open("./"+ time.strftime("%Y-%m-%d %H:%M:%S") + " result.html",'wb'),报错:OSError: [Errno 22] Invalid argument: './2018-09-05 10:29:32 result.html'
  17. Intel HD Graphics 620 (华硕FL5900U) Windows7下安装显卡驱动
  18. 译:SOS_SCHEDULER_YIELD类型等待在虚拟机环境中的增多
  19. 【工具相关】Web--nodejs的安装
  20. MYSQL存储过程中 使用变量 做表名

热门文章

  1. JavaScript 导出Excel 代码
  2. linux 2.6.37-3.x.x x86_64
  3. Ubuntu 14.04 AMD 64位 下 Android Studio 的安装
  4. Responsive布局技巧
  5. 移动WEB 性能优化方案
  6. php一些技巧函数
  7. [Albert 朗读行动记录贴]采纳Scalers方法:口语成长行动
  8. 【转载 来自sdnlab】 开放网络没那么简单
  9. PHP json_decode 函数解析 json 结果为 NULL 的解决方法
  10. ThinkPHP的cookide保存二维数组的方法