10 2020 档案
摘要:执行顺序 执行通过ApplicationContext添加进来的BeanDefinitionRegistryPostProcessor的postProcessBeanDefinitionRegistry()方法 执行BeanFactory中实现了PriorityOrdered接口的BeanDefin
阅读全文
摘要:Spring中ApplicationContext的close方法执行流程: 1、发布关闭事件 2、执行lifeCycleProcess的close方法 3、执行destroyBeans()方法; 注释原文:// Destroy all cached singletons in the contex
阅读全文
摘要:在没有指定name属性,进行@Autowired同样的操作时,其中6层筛选的最后一步byname,尝试找出唯一bean的这一步其实多余。因为第一次根据注入点名字在BeanFactory中找bean已经做了同样的操作。
阅读全文