摘要: 一、Spring容器类继承图 二、容器前期准备 IoC源码解析入口: 调用构造函数AnnotationConfigApplicationContext 调用this(),会默认先调用父类的无参构造函数,为ApplicationContext上下文对象初始beanFactory = new Defau 阅读全文
posted @ 2019-08-11 17:50 toby.xu 阅读(4626) 评论(4) 推荐(5) 编辑
摘要: 一、实例化所有的非懒加载的单实例Bean 从org.springframework.context.support.AbstractApplicationContext#refresh方法开发,进入到实例化所有的非懒加载的单实例Bean的finishBeanFactoryInitialization 阅读全文
posted @ 2019-08-11 11:47 toby.xu 阅读(4785) 评论(2) 推荐(4) 编辑