mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
17 lines
181 B
Groovy
17 lines
181 B
Groovy
@Configuration(proxyBeanMethods = false)
|
|
class App {
|
|
|
|
@Bean
|
|
MyService myService() {
|
|
return new MyService()
|
|
}
|
|
|
|
}
|
|
|
|
class MyService {
|
|
|
|
String sayWorld() {
|
|
return "World!"
|
|
}
|
|
|
|
} |