摘要: RBAC权限模型 RBAC权限模型(Role-Based Access Control)即:基于角色的权限控制。这是目前最常被开发者使用也是相对易用、通用权限模型 建表及SQL语句编写 sys_user表之前创建了,现在这里就不展示了 CREATE TABLE sys_menu ( id bigin 阅读全文
posted @ 2023-04-25 16:41 漁夫 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 授权基本流程 在SpringSecurity中,会使用默认的FilterSecurityInterceptor来进行权限校验,在FilterSecurityInterceptor中会从SecurityContextHilder获取其中的Authentication,然后获取其中的权限信息,当前用户是 阅读全文
posted @ 2023-04-25 15:09 漁夫 阅读(61) 评论(0) 推荐(0) 编辑
摘要: 认证配置详解 Config package com.sangeng.config; import com.sangeng.filter.JwtAuthenticationTokenFilter; import org.springframework.beans.factory.annotation. 阅读全文
posted @ 2023-04-25 11:36 漁夫 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 配置认证过滤器 Config package com.sangeng.config; import com.sangeng.filter.JwtAuthenticationTokenFilter; import org.springframework.beans.factory.annotation 阅读全文
posted @ 2023-04-25 11:10 漁夫 阅读(25) 评论(0) 推荐(0) 编辑