Browse Source

Consistent @Bean method return type for equivalence with XML example

Closes gh-29338
pull/29975/head
Juergen Hoeller 3 years ago
parent
commit
84c7f07364
  1. 4
      framework-docs/src/docs/asciidoc/core/core-beans.adoc

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

@ -7557,7 +7557,7 @@ The simplest possible `@Configuration` class reads as follows: @@ -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: @@ -7569,7 +7569,7 @@ The simplest possible `@Configuration` class reads as follows:
class AppConfig {
@Bean
fun myService(): MyService {
fun myService(): MyServiceImpl {
return MyServiceImpl()
}
}

Loading…
Cancel
Save