Consistent @Bean method return type for equivalence with XML example

Closes gh-29970
This commit is contained in:
Juergen Hoeller
2023-02-14 16:57:35 +01:00
parent cdea667e58
commit 0026338c00

View File

@@ -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()
}
}