摘要:
1.通过improtselector接口控制 根据任意条件确认是否加载bean public class MyImportSelector implements ImportSelector {@ @Override public String[] selectImports(AnnotationM 阅读全文
posted @ 2022-10-12 13:16
桃花雪
阅读(104)
评论(0)
推荐(0)
摘要:
总结了一下八种bean的加载方式 bold;">接口 xml+<bean/> xml:context+注解(@Component+4个@Bean) 配置类+扫描+注解(@Component+4个@Bean) @Bean定义FactoryBean接口 @ImportResource @Configur 阅读全文
posted @ 2022-10-12 09:56
桃花雪
阅读(713)
评论(0)
推荐(0)

浙公网安备 33010602011771号