@Configuration注解相当于xml中的beans,configuration处理也是在abstractapplicationcontext的refresh方法中。
继承于BeanDefinationRegistryPostProcessor
postProcessBeanFactory:负责对full cinfiguration进行增强。
postProcessBeanDefinationRegistry:根据bean创建beanDefination并注册到容器中。对componentscan进行处理,import。
网友评论