mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
14 lines
214 B
Groovy
14 lines
214 B
Groovy
package org.test
|
|
|
|
@Grab("spring-boot-starter-security")
|
|
@Grab("spring-boot-starter-actuator")
|
|
|
|
@RestController
|
|
class SampleController {
|
|
|
|
@RequestMapping("/")
|
|
public def hello() {
|
|
[message: "Hello World!"]
|
|
}
|
|
}
|