Fix reference code sample

This commit is contained in:
Oleg Lomaka 2014-09-20 12:28:47 +03:00 committed by Sebastien Deleuze
parent d6be433501
commit abb45aa130
1 changed files with 1 additions and 1 deletions

View File

@ -6365,7 +6365,7 @@ support for autowiring of `@Bean` methods:
@Qualifier("public") TestBean spouse,
@Value("#{privateInstance.age}") String country) {
TestBean tb = new TestBean("protectedInstance", 1);
tb.setSpouse(tb);
tb.setSpouse(spouse);
tb.setCountry(country);
return tb;
}