> 文章列表 > Spring Security 6.0系列【16】授权篇之访问控制

Spring Security 6.0系列【16】授权篇之访问控制

Spring Security 6.0系列【16】授权篇之访问控制

有道无术,术尚可求,有术无道,止于术。

本系列Spring Boot 版本 3.0.4

本系列Spring Security 版本 6.0.2

源码地址:https://gitee.com/pearl-organization/study-spring-security-demo

文章目录

    • 1. 什么是授权?
    • 2. RBAC 权限模型
    • 3. 案例演示
      • 3.1 环境准备
      • 3.2 基于请求URL
      • 3.3 基于方法
        • 3.3.1 @EnableMethodSecurity
        • 3.3.2 @Secured
        • 5.2.3 @Pre 、@Post
        • 5.2.4 JSR-250

1. 什么是授权?

在之前介绍了Spring Sec