Spring Security基本配置和使用
创建项目
使用 Spring Boot CLI 命令行工具引入web 和 security, 快速创建一个 Web 应用程序
spring init --dependencies=web,security springbootsecurity
添加一个简单的接口
使用ide打开cli生成的项目,添加一个示例接口
@RestController
public class HelloController {
@GetMapping("/hello")
public String he.
原创
2020-05-30 17:38:22 ·
288 阅读 ·
0 评论