增加 Spring Security OAuth2 的 四种认证类型

This commit is contained in:
YunaiV
2018-09-13 20:14:26 +08:00
parent 6ecc3a6939
commit f8d701cbd9
22 changed files with 392 additions and 72 deletions

View File

@@ -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";
}
}