会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
钱不寒
明年韶华依旧在,明月春风彩云回
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
···
30
下一页
2020年12月6日
IOC原理——refresh主流程
摘要: 文章目录 ```AbstractApplicationContext#refresh```1. ```prepareRefresh```——刷新前预处理2. ```obtainFreshBeanFactory```——获取```beanFactory```3. ```prepareBeanFacto
阅读全文
posted @ 2020-12-06 11:28 qianbuhan
阅读(158)
评论(1)
推荐(0)
2020年12月5日
BeanFactoryPostProcessor & BeanDefinitionRegistryPostProcessor——执行时机
摘要: BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProcessor。 BeanFactoryPostProcessor @FunctionalInterface public interface BeanFactoryPostProcesso
阅读全文
posted @ 2020-12-05 16:34 qianbuhan
阅读(200)
评论(0)
推荐(0)
声明式事务原理——2. 方法调用流程
摘要: TransactionInterceptor 执行事务方法时和 AOP 一样,会进入DynamicAdvisedInterceptor#intercept方法,拦截链中只有一个TransactionInterceptor拦截器。TransactionInterceptor继承了MethodInter
阅读全文
posted @ 2020-12-05 13:31 qianbuhan
阅读(179)
评论(0)
推荐(0)
声明式事务原理——1. @EnableTransactionManagement
摘要: @EnableTransactionManagement 可以看出这个注解的主要作用是导入TransactionManagementConfigurationSelector @Import(TransactionManagementConfigurationSelector.class) publ
阅读全文
posted @ 2020-12-05 13:01 qianbuhan
阅读(713)
评论(0)
推荐(0)
2020年12月4日
AOP原理——3. AOP方法调用流程
摘要: 获取拦截链链式调用通知方法 一般情况下是DynamicAdvisedInterceptor里的intercept方法起作用。 DynamicAdvisedInterceptor是CglibAopProxy的内部类 DynamicAdvisedInterceptor#intercept public
阅读全文
posted @ 2020-12-04 10:54 qianbuhan
阅读(636)
评论(0)
推荐(0)
2020年12月3日
AOP原理——2. AbstractAutoProxyCreator 创建动态代理对象
摘要: SmartInstantiationAwareBeanPostProcessor接口继承自InstantiationAwareBeanPostProcessor接口。 因此AbstractAutoProxyCreator一般是通过InstantiationAwareBeanPostProcessor
阅读全文
posted @ 2020-12-03 14:58 qianbuhan
阅读(864)
评论(0)
推荐(0)
BeanPostProcessor——注册顺序
摘要: implement PriorityOrderedimplement Orderedregister all regular BeanPostProcessorsre-register all internal BeanPostProcessors AbstractApplicationContex
阅读全文
posted @ 2020-12-03 11:06 qianbuhan
阅读(458)
评论(0)
推荐(0)
AOP原理——1. @EnableAspectJAutoProxy
摘要: @EnableAspectJAutoProxy 可以看出这个注解的主要作用就是导入AspectJAutoProxyRegistrar @Import(AspectJAutoProxyRegistrar.class) public @interface EnableAspectJAutoProxy {
阅读全文
posted @ 2020-12-03 10:31 qianbuhan
阅读(316)
评论(0)
推荐(0)
2020年11月16日
@Value
摘要: 赋值的类型: String @Value("spring")SpringEL @Value("#{20-10}")读取环境变量// 引入配置文件 @Configuration @PropertySource(value={"classpath:/value.properties"}) public
阅读全文
posted @ 2020-11-16 09:04 qianbuhan
阅读(323)
评论(0)
推荐(0)
BeanPostProcessor——执行时机
摘要: BeanPostProcessor就是在执行初始化方法的前后进行一次后置处理。 // AbstractAutowireCapableBeanFactory protected Object initializeBean(String beanName, Object bean, @Nullable
阅读全文
posted @ 2020-11-16 08:48 qianbuhan
阅读(262)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
···
30
下一页
公告