File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1+ # BeanFactoryBeanPostProcessor 源码分析
2+
13BeanFactoryBeanPostProcessor 是当 BeanDefinition 读取完元数据(也就是从任意资源中定义的 bean 数据)后还未实例化之前可以进行修改
24
35抄录并翻译官方的语句
@@ -19,7 +21,7 @@ public interface BeanFactoryPostProcessor {
1921}
2022```
2123
22- #### BeanFactoryPostProcessor 执行时期的探究
24+ ## BeanFactoryPostProcessor 执行时期的探究
2325
2426ApplicationContext 的 refresh() 中的 invokeBeanFactoryPostProcessors 方法就开始创建我们的 BFPP(BeanFactoryPostProcessor)了
2527
@@ -160,7 +162,7 @@ public static void invokeBeanFactoryPostProcessors(
160162
161163所谓属性编辑器是当你要自定义更改配置文件中的属性属性时,如 String 类型转为 Date 或者其他,下面的一个小例子展示如何 String 类型的属性怎么转化为 Address 属性
162164
163- #### 简单工程(Spirng -version-5.3.18)
165+ ## 简单工程(Spring -version-5.3.18)
164166
165167Person 类
166168
Original file line number Diff line number Diff line change 1+ # BeanPostProcessor 源码分析
2+
13BeanPostProcessor 接口也叫 Bean 后置处理器,作用是在 Bean 对象实例化和依赖注入完成后,在配置文件 bean 的 init-method(初始化方法)或者 InitializingBean 的 afterPropertiesSet 的前后添加我们自己的处理逻辑。注意是 Bean 实例化完毕后及依赖注入完成后触发的,接口的源码如下。
24
35``` java
You can’t perform that action at this time.
0 commit comments