From 0026338c00d6ebfd4da09f41f66120f58c06da62 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Tue, 14 Feb 2023 16:57:35 +0100 Subject: [PATCH] Consistent @Bean method return type for equivalence with XML example Closes gh-29970 --- src/docs/asciidoc/core/core-beans.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/docs/asciidoc/core/core-beans.adoc b/src/docs/asciidoc/core/core-beans.adoc index 69b8b0b2326..4df6bbf5210 100644 --- a/src/docs/asciidoc/core/core-beans.adoc +++ b/src/docs/asciidoc/core/core-beans.adoc @@ -7596,7 +7596,7 @@ The simplest possible `@Configuration` class reads as follows: public class AppConfig { @Bean - public MyService myService() { + public MyServiceImpl myService() { return new MyServiceImpl(); } } @@ -7608,7 +7608,7 @@ The simplest possible `@Configuration` class reads as follows: class AppConfig { @Bean - fun myService(): MyService { + fun myService(): MyServiceImpl { return MyServiceImpl() } }