@configuration注解proxyBeanMethods区分full(true)配置类或者lite(false)配置类
配置类:@component、@ComponentScan 生成beanDefinition放到bean工厂里面、@import(userService.class)(实现ImportSelector(deferredImportSelector每批结束后调用)、ImportBeanDefinitionRegistrar加入到当前配置类的属性ImportBeanDefinitionRegistrar中、普通类型)、@ImportResource(spring.xml 加入到importResource属性中)、@Bean 封装为beanmethod对象放到当前配置类的beanmethods属性中、所实现的接口中是否有@bean、把配置类的父类当作配置类进行解析
@component 重复相同名字的bean 报错
@Bean 相同名字 不会报错 只会产生一个beandefinition
@Bean 覆盖@component
@configuration 生成代理对象