16
spring-bootstrap-cli/samples/service.groovy
Normal file
16
spring-bootstrap-cli/samples/service.groovy
Normal file
@@ -0,0 +1,16 @@
|
||||
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!"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user