- 容器启动时实例化
Spring BeanPostProcessor : AutowiredAnnotationBeanPostProcessor
; AutowiredAnnotationBeanPostProcessor
在容器实例化每个bean
时扫描bean
中使用注解@Autowired
/@Value
/@Inject
的位置,执行相应的依赖注入;
以上步骤关键点在于AutowiredAnnotationBeanPostProcessor
的具体工作,本文不再展开,请参考 :