2022年8月14日

Spring IoC常用注解手写实现

摘要: 执行流程 1. 初始化Spring容器时传入配置类,通过配置类的@ComponentScan注解告知Spring需要扫描的包路径,不在扫描包路径下的@Component等注解修饰的Bean不会被IoC容器创建;2. 从工程根目录/target/classes中获取全类名,使用类加载器加载全类名得到c 阅读全文

posted @ 2022-08-14 20:05 王景迁 阅读(53) 评论(0) 推荐(0) 编辑

导航