Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 95b3a37

Browse files
Merge pull request Snailclimb#660 from AllstarVirgo/master
修正文档SpringBean.md中关于对BeanFactoryAware的方法调用的说明
2 parents 49c1fbf + 0bad97b commit 95b3a37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/system-design/framework/spring/SpringBean.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public class CustomerBeanPostProcessor implements BeanPostProcessor {
303303
- 如果涉及到一些属性值 利用set方法设置一些属性值。
304304
- 如果Bean实现了BeanNameAware接口,调用setBeanName()方法,传入Bean的名字。
305305
- 如果Bean实现了BeanClassLoaderAware接口,调用setBeanClassLoader()方法,传入ClassLoader对象的实例。
306-
- 如果Bean实现了BeanFactoryAware接口,调用setBeanClassLoader()方法,传入ClassLoader对象的实例
306+
- 如果Bean实现了BeanFactoryAware接口,调用setBeanFactory()方法,传入BeanFactory对象的实例
307307
- 与上面的类似,如果实现了其他*Aware接口,就调用相应的方法。
308308
- 如果有和加载这个Bean的Spring容器相关的BeanPostProcessor对象,执行postProcessBeforeInitialization()方法
309309
- 如果Bean实现了InitializingBean接口,执行afterPropertiesSet()方法。

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /