Ops -> Actuator
This commit is contained in:
15
spring-boot-cli/samples/actuator.groovy
Normal file
15
spring-boot-cli/samples/actuator.groovy
Normal file
@@ -0,0 +1,15 @@
|
||||
package org.test
|
||||
|
||||
@Grab("org.springframework.boot:spring-boot-starter-actuator:0.5.0.BUILD-SNAPSHOT")
|
||||
|
||||
@Controller
|
||||
class SampleController {
|
||||
|
||||
@RequestMapping("/")
|
||||
@ResponseBody
|
||||
public def hello() {
|
||||
[message: "Hello World!"]
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user