spring security 入门案例
- 创建springboot工程
- 引入依赖
org.springframework.boot
spring-boot-starter-security
2.创建controller
```java
package com.example.springscuritydemo.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;