spring aop学习记录文档
动态代理学习:https://www.cnblogs.com/xiaoluo501395377/p/3383130.html
ProxyFactory:https://www.cnblogs.com/5207/p/6055152.html
ProxyConfig:https://www.cnblogs.com/mayang2465/p/12141814.html
ProxyFactory:https://juejin.cn/post/7040790109427499044
- Before Advice:在目标方法被调用前调用,涉及接口org.springframework.aop.MethodBeforeAdvice
- After Advice:在目标方法被调用后调用,涉及接口为org.springframework.aop.AfterReturningAdvice
- Throws Advice:目标方法抛出异常时调用,涉及接口org.springframework.aop.ThrowsAdvice
- Around Advice:拦截对目标对象方法调用,涉及接口为org.aopalliance.intercept.MethodInterceptor
- Introduction Advice:为拦截的目标增加方法,涉及的接口为org.springframework.aop.support.DelegatingIntroductionInterceptor
自己的理解:切面=切点+增强
Advised 接口:
AdvisedSupport 类实现Advised接口: