摘要: 1. 概述 当使用 spring-context 搭建简单 demo 时,调用 BeanDefinitionRegistryPostProcessor 第一个就是 ConfigurationClassPostProcessor 同时注意到它干了什么,它 getBean 立即将其转换为 Bean / 阅读全文
posted @ 2022-04-08 23:38 YangDanMua 阅读(40) 评论(0) 推荐(0) 编辑
摘要: 1. 概述 前面说到 Reader 实例化时注册了一些 BD 进入容器。 在 refresh 过程中,也注入了一些 Bean 到容器,注意这里注入的不是 BD 而是直接注入 Bean。 2. prepareBeanFactory org.springframework.context.support 阅读全文
posted @ 2022-04-08 21:56 YangDanMua 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 1. 概述 作为AnnotationConfigApplicationContext的字段 public class AnnotationConfigApplicationContext extends GenericApplicationContext implements AnnotationC 阅读全文
posted @ 2022-04-08 21:38 YangDanMua 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 1. AnnotationConfigApplicationContext 的 reader 和 scanner public AnnotationConfigApplicationContext(Class<?>... componentClasses) { this(); // 注册解析这个 B 阅读全文
posted @ 2022-04-08 20:54 YangDanMua 阅读(145) 评论(0) 推荐(0) 编辑
摘要: 切换到指定 tag:git checkout v5.3.15 根据指定 tag 新建分支:git checkout -b v5.3.15-comments v5.3.15 ok 阅读全文
posted @ 2022-04-08 01:23 YangDanMua 阅读(2718) 评论(0) 推荐(0) 编辑
摘要: 主要是在下载Spring-Framework源码的时候,一是下载时间长(码云下载的),二是报错了。 安装网上的改了git缓存还是不行,就想起之前baidu wangpan 下载的时候路径超长问题。 解决:Win10/Win11 开启长路径 Win + R,输入执行:gpedit.msc(本质是执行 阅读全文
posted @ 2022-04-08 01:09 YangDanMua 阅读(326) 评论(0) 推荐(0) 编辑