2020
09-24
09-24
Spring容器注册组件实现过程解析
1、@Configuration&@Bean给容器中注册组件@Configuration及@Bean的使用参考如下代码:packagecom.atguigu.config;importorg.springframework.context.annotation.Bean;importorg.springframework.context.annotation.ComponentScan;importorg.springframework.context.annotation.Configuration;importorg.springframework.context.annotation.FilterType;importorg.springframework.context.annotation.ComponentScan.Filt...
继续阅读 >