mirror of
https://gitee.com/yudaocode/SpringBoot-Labs.git
synced 2026-09-07 15:58:58 +08:00
增加 Spring Security OAuth2 的 四种认证类型
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package lab01.resource.api;
|
||||
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* 示例模块 Controller
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/api/example")
|
||||
public class ExampleController {
|
||||
|
||||
// @CrossOrigin
|
||||
@RequestMapping("/hello")
|
||||
public String hello() {
|
||||
return "world";
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user