标签:
执行前增强:org.springframework.aop.MethodBeforeAdvice,重写方法:public void before(Method args0,Object[] args1,Object args2);
执行后增强:org.springframework.aop.AfterReturningAdvice,重写方法:public void afterReturning(Object args0,Method args1,Object[] args2);
方法任意增强、前后环绕增强:org.springframework.aop.MethodInterceptor,重写方法:public Object invoke(MethodInvocation arg0){
//前增强
arg0.proceed();
//后增强
return null;
};
标签:
原文地址:http://www.cnblogs.com/juson37/p/5910202.html