fixed JavaConfig sample code (SPR-6637, SPR-6638)
This commit is contained in:
parent
9ca6003533
commit
f7b0a2c0a2
|
|
@ -5591,7 +5591,7 @@ public class CachingMovieCatalog implements MovieCatalog {
|
|||
class would read as follows: <programlisting language="java">@Configuration
|
||||
public class AppConfig {
|
||||
@Bean
|
||||
public void MyService myService() {
|
||||
public MyService myService() {
|
||||
return new MyServiceImpl();
|
||||
}
|
||||
}</programlisting></para>
|
||||
|
|
|
|||
Loading…
Reference in New Issue