spring实现aop

//========================================================== @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()); } }

猜你喜欢

转载自blog.51cto.com/12165865/2178863