Spring配置类解析 【TL spring 11】

发布时间:2026/8/14 16:10:31
Spring配置类解析 【TL spring 11】
configuration注解proxyBeanMethods区分fulltrue配置类或者litefalse配置类配置类component、ComponentScan 生成beanDefinition放到bean工厂里面、importuserService.class(实现ImportSelectordeferredImportSelector每批结束后调用、ImportBeanDefinitionRegistrar加入到当前配置类的属性ImportBeanDefinitionRegistrar中、普通类型)、ImportResourcespring.xml 加入到importResource属性中、Bean 封装为beanmethod对象放到当前配置类的beanmethods属性中、所实现的接口中是否有bean、把配置类的父类当作配置类进行解析component 重复相同名字的bean 报错Bean 相同名字 不会报错 只会产生一个beandefinitionBean 覆盖componentconfiguration 生成代理对象