![](https://img-blog.csdnimg.cn/2019091813595558.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Spring
文章平均质量分 57
Spring
weixin_46202666
这个作者很懒,什么都没留下…
展开
-
@Async 深度源码解析
文章目录1、实现流程2、源码解析2.1 @EnableAsync2.2 AsyncAnnotationBeanPostProcessor2.3 AnnotationAsyncExecutionInterceptor3、深度解析3.1 怎么判断类是否需要被代理3.2代理对象怎么执行AnnotationAsyncExecutionInterceptor的1、实现流程@EnableAsync 开启异步注解,注入BeanPostProcess对类中有方法带有@Async的进行拦截创建代理类最终会由Ann原创 2022-01-11 23:53:52 · 367 阅读 · 0 评论 -
BeanPostProcess
文章目录一、BeanPostProcessor1.1 postProcessBeforeInitialization1.2 postProcessAfterInitialization二、MergedBeanDefinitionPostProcessor2.1 postProcessBeforeInstantiation2.2 postProcessAfterInstantiation三、InstantiationAwareBeanPostProcessor一、BeanPostProcessor1.1原创 2021-10-28 16:30:32 · 102 阅读 · 0 评论 -
源码:Springboot的启动流程
提示:文章写完后,目录可以自动生成,如何生成可参考右边的帮助文档文章目录前言入口一、SpringApplication构造器二 run前言springboot2.5.6版本入口public static void main(String[] args) { SpringApplication.run(KafkaMain.class, args);}一、SpringApplication构造器public SpringApplication(ResourceLoader re原创 2021-10-28 14:36:21 · 57 阅读 · 0 评论 -
Spring类
Spring类分析BeanFactory遗留问题BeanFactory遗留问题这边的getbeanProvider是干嘛的?不是有getBean了么,为什么还要有getbeanProvider上面部分方法里有参数ResolvableType ,这个是什么,和其他的区别在哪里?public interface BeanFactory { //区分factoryBean和普通bean,举个例子:如果myBean是个factoryBean,那么get &myBean将获得这个工厂实例原创 2021-08-03 22:37:59 · 247 阅读 · 0 评论