org.springframework.beans.factory.support.DefaultListableBeanFactory
重要数据结构
/** Map of bean definition objects, keyed by bean name */
private final Map<String, BeanDefinition> beanDefinitionMap = new ConcurrentHashMap<String, BeanDefinition>(256);
RootConfig 代码
@Configuration
@Import(MybatisConfig.class)
@ComponentScan(basePackages = {"com.xxx.*"},
excludeFilters = {@ComponentScan.Filter(type = FilterType.ANNOTATION, value = EnableWebMvc.class)})
public class RootConfig {
}
org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.resolveBasePackage