nafaleaafds的gravatar头像
nafaleaafds 2020-03-08 00:59:05

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

项目描述

权限管理子系统

Spring+SpringMVC+MyBatis 技术整合(Spring boot)

前段页面使用 bootstrap搭建

使用shiro框架做权限管理

运行环境

jdk8+tomcat8+mysql+sts+maven

项目技术(必填)

spring+spring mvc+mybatis+bootstrap+jquery+bootstrap+shiro+ajax

数据库文件(可选)

链接:https://pan.baidu.com/s/1Z3w08TH0VNA6jPXEYhJhmQ
提取码:eqya

依赖包文件(可选)

maven搭建

链接:https://pan.baidu.com/s/1R3vEdfk5YfA8r-erGss9Bw
提取码:hzoy

资源包文件(可选)

链接:https://pan.baidu.com/s/1neoJePM2uJQ3Wlcu8HRC9Q
提取码:slry

将static.rar压缩包解压后覆盖到AuthorityManagement\src\main\resources\static目录

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

运行视频(可选)

链接:https://pan.baidu.com/s/1JuI1HgQu9MPjwwUxVMlwlw
提取码:opp9

是否原创(转载必填原文地址)

培训时的项目

项目截图(必填)

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

运行截图(必填)

http://localhost:8080/doLoginUI

系统管理员账号密码zuidaima 123

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

系统登录成功页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

部门管理页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

菜单管理页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

角色管理页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

用户管理页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

日志管理页面

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

注意事项(可选)

1.商品管理菜单的功能不可用,点击无效,请注意

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

2.Shiro安全框架介绍

Shiro是apache旗下一个开源安全框架,它将软件系统的安全认证相关的功能抽取出来,实现用户身份认证,权限授权、加密、会话管理等功能,组成了一个通用的安全认证框架。使用shiro就可以非常快速的完成认证、授权等功能的开发,降低系统成本。

用户在进行资源访问时,要求系统要对用户进行权限控制,其具体流程如图

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

1. 在概念层面,Shiro 架构包含三个主要的理念,如图

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

其中:

  1. Subject :主体对象,负责提交用户认证和授权信息。
  2. SecurityManager:安全管理器,负责认证,授权等业务实现。
  3. Realm:领域对象,负责从数据层获取业务数据。

2.授权访问实现描述

在需要进行授权访问的业务层方法上添加执行此方法需要的权限标识,例如

@RequiresPermissions(“sys:user:valid”)

说明:

  1. 此要注解一定要添加到业务层方法上。
  2. 在执行需要权限访问的资源时,会在数据库中查询登录用户的角色,然后通过角色查询角色的权限,然后进行匹配。通过aop实现。
  3. 可以加入缓存配置,当我们进行授权操作时,每次都会从数据库查询用户权限信息,为了提高授权性能,可以将用户权限信息查询出来以后进行缓存,下次授权时从缓存取数据即可。项目中已经实现

3.顶部右侧消息通知栏都只是模板,不是真实数据

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统

spring boot+Mybatis+shiro+bootstrap实现网站后台权限管理系统


打赏

已有1人打赏

最代码官方的gravatar头像

文件名:AuthorityManagement.zip,文件大小:87.817K 下载
最代码最近下载分享源代码列表最近下载
shuangfu  LV24 2023年10月19日
tyyeng  LV18 2023年8月1日
zdh3907  LV15 2022年11月10日
wuying8208  LV15 2022年10月31日
刘亦菲9527  LV15 2022年8月2日
哆啦A梦伴我同行  LV10 2021年12月1日
xukimi1983  LV2 2021年11月15日
尹恒yingying  LV18 2021年10月13日
go_away15  LV7 2021年9月26日
chen_jw  LV10 2021年9月17日
最代码最近浏览分享源代码列表最近浏览
13521878735  LV3 3月27日
做自己的太阳  LV11 2月1日
xuweiwowzy  LV5 1月14日
WBelong  LV7 2023年12月27日
black8angel  LV4 2023年12月22日
xiaofei1219  LV1 2023年11月23日
fff2003  LV6 2023年11月14日
shuangfu  LV24 2023年10月19日
maniheim  LV7 2023年9月28日
墨上墨上墨上  LV1 2023年9月18日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友