mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
14 lines
180 B
Groovy
14 lines
180 B
Groovy
|
package org.test
|
||
|
|
||
|
@EnableAuthorizationServer
|
||
|
@EnableResourceServer
|
||
|
@RestController
|
||
|
class SampleController {
|
||
|
|
||
|
@RequestMapping("/")
|
||
|
def hello() {
|
||
|
[message: "Hello World!"]
|
||
|
}
|
||
|
|
||
|
}
|