mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
16 lines
157 B
Groovy
16 lines
157 B
Groovy
@RestController
|
|
class Application {
|
|
|
|
@Autowired
|
|
String foo
|
|
|
|
@RequestMapping("/")
|
|
String home() {
|
|
"Hello ${foo}!"
|
|
}
|
|
}
|
|
|
|
beans {
|
|
foo String, "World"
|
|
}
|