1. 2.31 使用historical

    1. 创建项目 2. pom.xml 3. 代码 - AopConfig - Calc - Main

  2. 2.46 是什么historical

    1. IOC解释 控制反转。 没有IOC之前我们使用一个对象首先要自己new出来; 有了Spring后是他帮我们new,然后放在容器里,我们直接从容器中获取对象使用。 2. 实现原理 工厂模式+反射+xml解析 扫描所有xml文件,使用dom4j解析,然后创建bean放入工厂中的map中,我们get

  3. 2.62 1.创建spring容器historical

    1. 要分析的代码 分成创建ApplicationContext和从ApplicationContext中获取Calc的bean这两个过程,我们一步步跟踪 2. 创建ApplicationContext 2.1. AnnotationConfigApplicationContext构造方法 refr

  4. 2.68 2.调用BeanFactoryPostProcessor的postProcess方法historical

    1. 要研究的代码 - AbstractApplicationContext invokeBeanFactoryPostProcessors 关键的是这一句 PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(beanF

  5. 2.73 3.注册BeanPostProcessorhistorical

    1. 要研究的代码 - AbstractApplicationContext registerBeanPostProcessors PostProcessorRegistrationDelegate.registerBeanPostProcessors(beanFactory, this); 这个作

  6. 2.76 4.实例化所有非懒加载的单实例beanhistorical

    1. 要研究的代码 - finishBeanFactoryInitialization 这个步骤中尤其重要,他的preInstantiateSingletons会实例化所有非懒加载的单实例bean 2. 实例化所有非懒加载的单实例bean 2.1. 获取所有BeanName,一个个创建 - Defa

  7. 2.78 uml图historical

    ��