//==========================================================
@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
原文:http://blog.51cto.com/12165865/2178863