{"id":20932708,"url":"https://github.com/zhaojun1998/shiro-action","last_synced_at":"2025-04-05T02:11:24.800Z","repository":{"id":34778440,"uuid":"153915674","full_name":"zhaojun1998/Shiro-Action","owner":"zhaojun1998","description":"基于 Shiro 的权限管理系统，支持 restful  url 授权，体验地址 :","archived":false,"fork":false,"pushed_at":"2024-05-16T17:15:13.000Z","size":2365,"stargazers_count":416,"open_issues_count":6,"forks_count":170,"subscribers_count":17,"default_branch":"master","last_synced_at":"2025-03-29T01:12:42.520Z","etag":null,"topics":["java","permission","shiro","sprintboot"],"latest_commit_sha":null,"homepage":"https://shiro.jun6.net","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhaojun1998.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-10-20T14:46:34.000Z","updated_at":"2025-03-19T05:56:01.000Z","dependencies_parsed_at":"2024-11-12T21:43:25.631Z","dependency_job_id":null,"html_url":"https://github.com/zhaojun1998/Shiro-Action","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaojun1998%2FShiro-Action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaojun1998%2FShiro-Action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaojun1998%2FShiro-Action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhaojun1998%2FShiro-Action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhaojun1998","download_url":"https://codeload.github.com/zhaojun1998/Shiro-Action/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["java","permission","shiro","sprintboot"],"created_at":"2024-11-18T21:53:06.057Z","updated_at":"2025-04-05T02:11:24.778Z","avatar_url":"https://github.com/zhaojun1998.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shiro-Action\n\n[![Build Status](https://travis-ci.org/zhaojun1998/Shiro-Action.svg?branch=master)](https://travis-ci.org/zhaojun1998/Shiro-Action)\n![https://img.shields.io/badge/license-MIT-blue.svg?style=flat-square](https://img.shields.io/badge/license-MIT-blue.svg?longCache=true\u0026style=flat-square)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3b39480c887b42f1875c0210817b500f)](https://www.codacy.com/app/zhaojun1998/Shiro-Action?utm_source=github.com\u0026amp;utm_medium=referral\u0026amp;utm_content=zhaojun1998/Shiro-Action\u0026amp;utm_campaign=Badge_Grade)\n![https://img.shields.io/badge/springboot-2.0.6-orange.svg?style=flat-square](https://img.shields.io/badge/springboot-2.0.6-yellow.svg?longCache=true\u0026style=popout-square)\n![https://img.shields.io/badge/apache%20shiro-1.4.0-green.svg?style=flat-square](https://img.shields.io/badge/apache%20shiro-1.4.0-green.svg?longCache=true\u0026style=flat-square)\n![GitHub tag (latest SemVer)](https://img.shields.io/github/tag/zhaojun1998/Shiro-Action.svg?style=flat-square)\n\n本项目使用 Spring Boot 搭建, 用于加深对 Spring Boot 与 Shiro 的学习, 项目特色是支持 restful 风格权限控制, 支持对同一 URL, 不同 HTTP Mehtod 的权限控制, 适用于更多的场景.\n\n预览地址: [http://shiro.jun6.net/](http://shiro.jun6.net/)\n\n文档地址: [http://docs.zhaojun.im/shiro/](http://docs.zhaojun.im/shiro/)\n\n默认管理员账号: `admin`, 密码: `123456`.\n\n普通用户账号: `user`, 密码: `123456`.\n\n\u003e 为了不影响其他人的浏览体验, 请尽量不要进行删除类的敏感操作.  `admin` 为超级管理员, 自动拥有全部权限.\n\n## 系统特色\n\n* 支持根据同 URL, 不同 HTTP Method 来校验权限, 更支持 restful 场景.\n* 集成 OAuth2 登录, 且提供了接口易于拓展开发.\n* 全局异常处理. 根据请求方式区分返回 json 数据还是错误页面.\n* Logback MDC 支持, 将当前登录人和操作者 IP 加入日志中.\n* JSR-303 数据校验\n\n## 运行环境\n\n* JDK 1.8\n* MySQL 5.7\n* Redis\n\n## 快速开始\n\n### 下载项目\n\n```git\ngit clone https://github.com/zhaojun1998/Shiro-Action.git\n```\n\n### 导入项目\n\n使用自己的 IDE 导入, Eclipse 和 Intellij IDEA 均可.\n\n### 导入数据库\n\n创建数据库, 字符集选择 `utf8`, 排序规则选择 `utf8_general_ci`.\n\n然后导入 `shiro_action.sql` 到数据库中.\n\n### 配置文件\n\n打开 `application.properties` 修改 `MySQL` 和 `Redis` 连接信息.\n\n```properties\nspring.redis.host=127.0.0.1\nspring.redis.port=6379\nspring.cache.type=redis\n\nspring.datasource.username=root\nspring.datasource.password=123456\nspring.datasource.url=jdbc:mysql://127.0.0.1:3306/shiro_action?useSSL=false\u0026characterEncoding=UTF8\n```\n\n### 启动项目\n在完成了上述步骤后，找到 ShiroActionApplication 启动类, 启动即可.\n\n启动后访问地址为：http://localhost:8080 , 用户名：admin, 密码：123456.\n\n## 系统预览\n\n![](https://cdn.jun6.net/201905292303_211.png)\n\n![](https://cdn.jun6.net/201906302159_326.png)\n\n![](https://cdn.jun6.net/2019/06/30/5d18c0a85b38a.png)\n\n![](https://cdn.jun6.net/2019/06/30/5d18c0a849285.png)\n\n![](https://cdn.jun6.net/2019/06/30/5d18c1e09d314.png)\n\n![](https://cdn.jun6.net/2019/06/30/5d18c1ad27580.png)\n\n![](https://cdn.jun6.net/2019/06/30/5d18c1ad29d05.png)\n\n### 技术选型\n\n#### 前端\n\n* 前端框架: [Layui](https://www.layui.com/)\n* 后台模板: [Z-Admin](https://github.com/zhaojun1998/Z-Admin/)\n\n#### 后端\n\n* SpringBoot 2.0.6.RELEASE\n* Shiro 1.4.0\n* MyBatis 1.3.2\n* Druid 1.1.10\n* PageHelper 1.2.9\n* Shiro-Redis 3.2.3\n\n#### 其他工具类\n\n* OAuth2 认证工具类: [JustAuth](https://gitee.com/yadong.zhang/JustAuth)\n* Hutool : [https://hutool.cn/](https://hutool.cn/)\n\n### 反馈交流\n\nQQ 群号: [850586205](//shang.qq.com/wpa/qunwpa?idkey=b482b2e48a938a993ef54adcff7ed499a45127a73802a68f1238256fb02ed425)\n\n![](https://cdn.jun6.net/201904141340_574.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaojun1998%2Fshiro-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhaojun1998%2Fshiro-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhaojun1998%2Fshiro-action/lists"}