From 0bad97b79d301ce0643c9de89bbf4f65700da948 Mon Sep 17 00:00:00 2001 From: potato <657927144@qq.com> Date: Fri, 28 Feb 2020 05:13:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=96=87=E6=A1=A3SpringBean.?= =?UTF-8?q?md=E4=B8=AD=E5=85=B3=E4=BA=8E=E5=AF=B9BeanFactoryAware=E7=9A=84?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E8=B0=83=E7=94=A8=E7=9A=84=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/system-design/framework/spring/SpringBean.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/system-design/framework/spring/SpringBean.md b/docs/system-design/framework/spring/SpringBean.md index 4e8279e7..8968812a 100644 --- a/docs/system-design/framework/spring/SpringBean.md +++ b/docs/system-design/framework/spring/SpringBean.md @@ -303,7 +303,7 @@ public class CustomerBeanPostProcessor implements BeanPostProcessor { - 如果涉及到一些属性值 利用set方法设置一些属性值。 - 如果Bean实现了BeanNameAware接口,调用setBeanName()方法,传入Bean的名字。 - 如果Bean实现了BeanClassLoaderAware接口,调用setBeanClassLoader()方法,传入ClassLoader对象的实例。 -- 如果Bean实现了BeanFactoryAware接口,调用setBeanClassLoader()方法,传入ClassLoader对象的实例。 +- 如果Bean实现了BeanFactoryAware接口,调用setBeanFactory()方法,传入BeanFactory对象的实例。 - 与上面的类似,如果实现了其他*Aware接口,就调用相应的方法。 - 如果有和加载这个Bean的Spring容器相关的BeanPostProcessor对象,执行postProcessBeforeInitialization()方法 - 如果Bean实现了InitializingBean接口,执行afterPropertiesSet()方法。