java-tutorials/spring-boot-cli/groovy/security/Security.groovy

13 lines
198 B
Groovy

package bael.security
@Grab("spring-boot-starter-security")
@RestController
class SampleController {
@RequestMapping("/")
public def example() {
[message: "Hello World!"]
}
}