From 84c7f07364f107b6f2b5ca29c8dc33920d5f8f45 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 14 Feb 2023 16:36:31 +0100 Subject: [PATCH] Consistent @Bean method return type for equivalence with XML example Closes gh-29338 --- framework-docs/src/docs/asciidoc/core/core-beans.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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() } }