# springboot-sa-token **Repository Path**: sentime/springboot-sa-token ## Basic Information - **Project Name**: springboot-sa-token - **Description**: springboot集成sa-token进行权限验证 - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 1 - **Forks**: 1 - **Created**: 2024-01-24 - **Last Updated**: 2024-05-08 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 初始化项目 ## 1、使用上sa-token功能 ## 2、添加上Knife4j来测试接口的调用 启动Spring Boot项目,浏览器访问Knife4j的文档地址即可查看效果 http://localhost:8081/doc.html ## 3、添加上mybatis-plus功能 在策略配置中,笔者配置了需要生成的表名、过滤表前缀、开启 Lombok、覆盖已生成文件、下划线转驼峰命、Service 接口文件及实现类的文件名。 ## 4、代码生成器生成user表的crud ## 5、增加上拦截器的方法 ## 6、sa-token集成jwt的功能 # 继续 ## 1、将项目提交到gitee中 define Remote:Name的值要将origin改为和仓库名字一样 首次提交出现错误:Push to XXX/master was rejected `` git pull springboot-sa-token master --allow-unrelated-histories git push -u springboot-sa-token master -f ``` ## 2、添加上角色和菜单表 表不能双主键,会报错,改成单主键 根据用户ID获取角色-根据角色获取到菜单-每个菜单有对应的权限(code字段) ## 3、用户管理 ## 4、添加超级管理员权限 使用AuthInterceptor来添加超级管理员权限 # 复制的原项目 相关项目:https://gitee.com/mldong/mldong 前端工程: 演示地址:https://flow.mldong.com/dev/schemaGroup/index 演示环境账号密码:admin/123456 本地环境账号密码:superAdmin/123456