其他分享
首页 > 其他分享> > spring aop 事物

spring aop 事物

作者:互联网

1 总体分析图

 

2  postProcessBeforeInstantiation 代码

 

 

 3  postProcessAfterInstantiation 代码

 

 

 

before:主要用来加载所有的 advisor到内存中(advisorsCache),advisor分为两中情况,一个实现了Advisor接口,一个是标识了Aspect注解的类

after :1 找到所有能应用于当前bean的 advisor(findAdvisorsThatCanApply),2 创建代理对象

 

标签:spring,事物,aop,postProcessBeforeInstantiation,advisor,代码,before
来源: https://www.cnblogs.com/Tony100/p/14415041.html