Commit b8f0492 1 parent 7d39270 commit b8f0492 Copy full SHA for b8f0492
File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,4 +19,4 @@ tiny-spring
19
19
20
20
git checkout step-1-container-register-and-get
21
21
22
- 来获得这一版本。版本历史见` changelog.md ` 。
22
+ 来获得这一版本。版本历史见[ ` changelog.md ` ] ( https://github.com/code4craft/tiny-spring/blob/master/changelog.md ) 。
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ helloWorldService.helloWorld();
46
46
47
47
git checkout step-3-inject-bean-with-property
48
48
49
- 这一步,我们想要为bean注入属性。我们选择将属性注入信息保存成` PropertyValue ` 对象,并且保存到` BeanDefinition ` 中。这样在初始化bean的时候,我们就可以根据PropertyValue来进行bean属性的注入。Spring本身使用了setter来进行注入,这里为了代码简介 ,我们使用Field的形式来注入。
49
+ 这一步,我们想要为bean注入属性。我们选择将属性注入信息保存成` PropertyValue ` 对象,并且保存到` BeanDefinition ` 中。这样在初始化bean的时候,我们就可以根据PropertyValue来进行bean属性的注入。Spring本身使用了setter来进行注入,这里为了代码简洁 ,我们使用Field的形式来注入。
50
50
51
51
``` java
52
52
// 1.初始化beanfactory
You can’t perform that action at this time.
0 commit comments