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 a7f8dfb

Browse files
Merge pull request Snailclimb#1387 from hu-asc/master
笔误问题-Spring常见问题总结.md
2 parents c5e03c7 + ff5f4b0 commit a7f8dfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/system-design/framework/spring/Spring常见问题总结.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ public OneService getService(status) {
231231
- 如果涉及到一些属性值 利用 `set()`方法设置一些属性值。
232232
- 如果 Bean 实现了 `BeanNameAware` 接口,调用 `setBeanName()`方法,传入 Bean 的名字。
233233
- 如果 Bean 实现了 `BeanClassLoaderAware` 接口,调用 `setBeanClassLoader()`方法,传入 `ClassLoader`对象的实例。
234-
- 如果 Bean 实现了 `BeanFactoryAware` 接口,调用 `setBeanClassLoader()`方法,传入 `ClassLoade` r 对象的实例。
234+
- 如果 Bean 实现了 `BeanFactoryAware` 接口,调用 `setBeanFactory()`方法,传入 `BeanFactory`对象的实例。
235235
- 与上面的类似,如果实现了其他 `*.Aware`接口,就调用相应的方法。
236236
- 如果有和加载这个 Bean 的 Spring 容器相关的 `BeanPostProcessor` 对象,执行`postProcessBeforeInitialization()` 方法
237237
- 如果 Bean 实现了`InitializingBean`接口,执行`afterPropertiesSet()`方法。

0 commit comments

Comments
(0)

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