SpringBoot-Spring Security

1.先引入SpringSecurity的依赖

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-security</artifactId>
        </dependency>

2.编写SpringSecurity的配置类

3.控制请求的访问权限

原文地址:https://www.cnblogs.com/wxl123/p/12563058.html