Skip to content

Commit 84c7f07

Browse files
committed
Consistent @bean method return type for equivalence with XML example
Closes gh-29338
1 parent ac429a4 commit 84c7f07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework-docs/src/docs/asciidoc/core/core-beans.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7557,7 +7557,7 @@ The simplest possible `@Configuration` class reads as follows:
75577557
public class AppConfig {
75587558
75597559
@Bean
7560-
public MyService myService() {
7560+
public MyServiceImpl myService() {
75617561
return new MyServiceImpl();
75627562
}
75637563
}
@@ -7569,7 +7569,7 @@ The simplest possible `@Configuration` class reads as follows:
75697569
class AppConfig {
75707570
75717571
@Bean
7572-
fun myService(): MyService {
7572+
fun myService(): MyServiceImpl {
75737573
return MyServiceImpl()
75747574
}
75757575
}

0 commit comments

Comments
 (0)