mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
17 lines
317 B
Groovy
17 lines
317 B
Groovy
package org.test
|
|
|
|
@GrabResolver(name='spring-snapshot', root='http://repo.springframework.org/snapshot')
|
|
@Grab("org.springframework.bootstrap:spring-bootstrap-service:0.0.1-SNAPSHOT")
|
|
|
|
@Controller
|
|
class SampleController {
|
|
|
|
@RequestMapping("/")
|
|
@ResponseBody
|
|
public def hello() {
|
|
[message: "Hello World!"]
|
|
}
|
|
}
|
|
|
|
|