上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 30 下一页
摘要: 文章目录 ```AbstractApplicationContext#refresh```1. ```prepareRefresh```——刷新前预处理2. ```obtainFreshBeanFactory```——获取```beanFactory```3. ```prepareBeanFacto 阅读全文
posted @ 2020-12-06 11:28 qianbuhan 阅读(158) 评论(1) 推荐(0)
摘要: BeanDefinitionRegistryPostProcessor继承自BeanFactoryPostProcessor。 BeanFactoryPostProcessor @FunctionalInterface public interface BeanFactoryPostProcesso 阅读全文
posted @ 2020-12-05 16:34 qianbuhan 阅读(200) 评论(0) 推荐(0)
摘要: TransactionInterceptor 执行事务方法时和 AOP 一样,会进入DynamicAdvisedInterceptor#intercept方法,拦截链中只有一个TransactionInterceptor拦截器。TransactionInterceptor继承了MethodInter 阅读全文
posted @ 2020-12-05 13:31 qianbuhan 阅读(179) 评论(0) 推荐(0)
摘要: @EnableTransactionManagement 可以看出这个注解的主要作用是导入TransactionManagementConfigurationSelector @Import(TransactionManagementConfigurationSelector.class) publ 阅读全文
posted @ 2020-12-05 13:01 qianbuhan 阅读(713) 评论(0) 推荐(0)
摘要: 获取拦截链链式调用通知方法 一般情况下是DynamicAdvisedInterceptor里的intercept方法起作用。 DynamicAdvisedInterceptor是CglibAopProxy的内部类 DynamicAdvisedInterceptor#intercept public 阅读全文
posted @ 2020-12-04 10:54 qianbuhan 阅读(636) 评论(0) 推荐(0)
摘要: SmartInstantiationAwareBeanPostProcessor接口继承自InstantiationAwareBeanPostProcessor接口。 因此AbstractAutoProxyCreator一般是通过InstantiationAwareBeanPostProcessor 阅读全文
posted @ 2020-12-03 14:58 qianbuhan 阅读(864) 评论(0) 推荐(0)
摘要: implement PriorityOrderedimplement Orderedregister all regular BeanPostProcessorsre-register all internal BeanPostProcessors AbstractApplicationContex 阅读全文
posted @ 2020-12-03 11:06 qianbuhan 阅读(458) 评论(0) 推荐(0)
摘要: @EnableAspectJAutoProxy 可以看出这个注解的主要作用就是导入AspectJAutoProxyRegistrar @Import(AspectJAutoProxyRegistrar.class) public @interface EnableAspectJAutoProxy { 阅读全文
posted @ 2020-12-03 10:31 qianbuhan 阅读(316) 评论(0) 推荐(0)
摘要: 赋值的类型: 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就是在执行初始化方法的前后进行一次后置处理。 // 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 下一页