springboot-shiro
项目介绍
Springboot + shiro权限管理。
源码地址:https://gitee.com/ssh123/shiro.git











开发环境
工具 | 版本或描述 |
---|---|
OS | Windows 7 |
JDK | 1.8+ |
IDE | IntelliJ IDEA 2017.3 |
Maven | 3.3.1 |
MySQL | 5.6.4 |
模块划分
模块 | 释义 |
---|---|
shiro-core | 核心业务类模块,提供基本的数据操作、工具处理等 |
shiro-admin | 后台管理模块 |
SQL Model
使用说明
- 使用IDE导入本项目
- 新建数据库
CREATE DATABASE shiro;
- 导入数据库
docs/db/shiro.sql
- 修改(
resources/application.yml
)配置文件- 数据库链接属性(可搜索
datasource
或定位到L.19) - redis配置(可搜索
redis
或定位到L.69)
- 数据库链接属性(可搜索
- 运行项目(三种方式)
- 项目根目录下执行
mvn -X clean package -Dmaven.test.skip=true
编译打包,然后执行java -jar shiro-admin/target/shiro-admin.jar
- 项目根目录下执行
mvn springboot:run
- 直接运行
ShiroAdminApplication.java
- 项目根目录下执行
- 浏览器访问
http://127.0.0.1:8080
用户密码
超级管理员: 账号:root 密码:123456
普通管理员: 账号:admin 密码:123456
Druid监控
链接: http://127.0.0.1:8080/druid/index.html
用户名:zyd-druid 密码:zyd-druid
参与贡献
- Fork 本项目
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
注:以上图片是以root
用户登录,admin
用户的界面请参考docs/img
下的图片
网友评论