# spring-boot-shiro **Repository Path**: lin-mt/spring-boot-shiro ## Basic Information - **Project Name**: spring-boot-shiro - **Description**: Spring Boot 整合 Shiro - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-01-27 - **Last Updated**: 2022-05-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Sping Boot Shiro ### 项目介绍 Spring Boot 整合 [Shiro](http://shiro.apache.org/) ### 版本信息 | 框架 | 版本 | |---|---| | spring boot | 2.2.4.RELEASE | | shiro-spring | 1.4.2 | ### 步骤 1. 自定义 Realm ,实现登录验证以及登录人在访问权限限制的 URL 时设置登录人的权限信息:[com.gitee.linmt.realm.DatabaseRealm](src/main/java/com/gitee/linmt/realm/DatabaseRealm.java) 2. 添加 Shiro 配置:[com.gitee.linmt.config.ShiroConfig](src/main/java/com/gitee/linmt/config/ShiroConfig.java) #### 用户权限信息 1. 管理员(账号:admin,密码:admin,角色:administrator,权限:userInfo/userAdd,userInfo/userList) 2. 用户(账号:user,密码:user,角色:normalUser)