提交 abb45aa1 编写于 作者: O Oleg Lomaka 提交者: Sebastien Deleuze

Fix reference code sample

上级 d6be4335
...@@ -6365,7 +6365,7 @@ support for autowiring of `@Bean` methods: ...@@ -6365,7 +6365,7 @@ support for autowiring of `@Bean` methods:
@Qualifier("public") TestBean spouse, @Qualifier("public") TestBean spouse,
@Value("#{privateInstance.age}") String country) { @Value("#{privateInstance.age}") String country) {
TestBean tb = new TestBean("protectedInstance", 1); TestBean tb = new TestBean("protectedInstance", 1);
tb.setSpouse(tb); tb.setSpouse(spouse);
tb.setCountry(country); tb.setCountry(country);
return tb; return tb;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册