spring-boot/spring-boot-cli/samples/oauth2.groovy

14 lines
180 B
Groovy
Raw Permalink Normal View History

package org.test
@EnableAuthorizationServer
@EnableResourceServer
@RestController
class SampleController {
@RequestMapping("/")
def hello() {
[message: "Hello World!"]
}
}