diff --git a/framework-docs/src/docs/asciidoc/core/core-beans.adoc b/framework-docs/src/docs/asciidoc/core/core-beans.adoc index 906e43023df..c387eb7760b 100644 --- a/framework-docs/src/docs/asciidoc/core/core-beans.adoc +++ b/framework-docs/src/docs/asciidoc/core/core-beans.adoc @@ -7557,7 +7557,7 @@ The simplest possible `@Configuration` class reads as follows: public class AppConfig { @Bean - public MyService myService() { + public MyServiceImpl myService() { return new MyServiceImpl(); } } @@ -7569,7 +7569,7 @@ The simplest possible `@Configuration` class reads as follows: class AppConfig { @Bean - fun myService(): MyService { + fun myService(): MyServiceImpl { return MyServiceImpl() } }