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

13 lines
198 B
Groovy
Raw Normal View History

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