码迷,mamicode.com
首页 > 编程语言 > 详细

spring实现aop

时间:2018-09-21 21:40:04      阅读:209      评论:0      收藏:0      [点我收藏+]

标签:class   use   turn   component   target   express   for   res   config   

//========================================================== @Component public class AopAspect { public void beforeAdvice(JoinPoint joinPoint) { User user = (User)joinPoint.getArgs()[0]; System.out.println("参数转换成user"); System.out.println("target对象地址"+joinPoint.getTarget()); System.out.println("this对象地址"+joinPoint.getThis()); } }

spring实现aop

标签:class   use   turn   component   target   express   for   res   config   

原文地址:http://blog.51cto.com/12165865/2178863

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!