会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
a56爆大奖在线娱乐的博客
a56爆大奖在线娱乐的园子
账号设置
简洁模式
...
退出登录
注册
登录
CrazyDream
to my initial deram
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页
2020年3月9日
Spring Boot AOP记录用户操作日志
摘要: 在Spring框架中,使用AOP配合自定义注解可以方便的实现用户操作的监控。首先搭建一个基本的Spring Boot Web环境开启Spring Boot,然后 引入必要依赖: <dependency> <groupId>org.springframework.boot</groupId> <art
阅读全文
posted @ 2020-03-09 15:35 MyBeans
阅读(10993)
评论(0)
推荐(1)
编辑
2020年3月7日
Shiro -- (九) 集成SSM框架
摘要: 1.配置web.xml <!-- Shiro框架入口 --> <filter> <filter-name>shiroFilter</filter-name> <filter-class>org.springframework.web.filter.DelegatingFilterProxy</fil
阅读全文
posted @ 2020-03-07 17:04 MyBeans
阅读(421)
评论(0)
推荐(0)
编辑
Shiro -- (八) 会话管理
摘要: 会话管理 Shiro 提供了完整的企业级会话管理功能,不依赖于底层容器(如 web 容器 tomcat),不管 JavaSE 还是 JavaEE 环境都可以使用,提供了会话管理、会话事件监听、会话存储 / 持久化、容器无关的集群、失效 / 过期支持、对 Web 的透明支持、SSO 单点登录的支持等特
阅读全文
posted @ 2020-03-07 15:52 MyBeans
阅读(542)
评论(0)
推荐(0)
编辑
2020年3月6日
Thymeleaf中使用Shiro
摘要: 根据用户权限显示不同页面: 1.thymeleaf扩展shiro <dependencies> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifact
阅读全文
posted @ 2020-03-06 17:04 MyBeans
阅读(6473)
评论(0)
推荐(0)
编辑
Shiro -- (七) JSP标签
摘要: JSP 标签 Shiro 提供了 JSTL 标签用于在 JSP/GSP 页面进行权限控制,如根据登录用户显示相应的页面按钮。 导入标签库 <%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %> guest 标签 <shiro:gu
阅读全文
posted @ 2020-03-06 15:41 MyBeans
阅读(297)
评论(0)
推荐(0)
编辑
2020年3月2日
The security manager does not implement the WebSecurityManager interface.
摘要:
阅读全文
posted @ 2020-03-02 17:00 MyBeans
阅读(552)
评论(0)
推荐(0)
编辑
2020年3月1日
Shiro -- (七) Web 集成
摘要: 简介: Shiro 提供了与 Web 集成的支持,其通过一个 ShiroFilter 入口来拦截需要安全控制的 URL,然后进行相应的控制,ShiroFilter 类似于如 Strut2/SpringMVC 这种 web 框架的前端控制器,其是安全控制的入口点,其负责读取配置(如 ini 配置文件)
阅读全文
posted @ 2020-03-01 16:21 MyBeans
阅读(442)
评论(0)
推荐(0)
编辑
2020年2月29日
Shiro -- (六) 加密
摘要: 编码 / 解码 Shiro 提供了 base64 和 16 进制字符串编码 / 解码的 API 支持,方便一些编码解码操作。Shiro 内部的一些数据的存储 / a56爆大奖在线娱乐都使用了 base64 和 16 进制字符串。 Base64: 16进制HEX 散列算法 散列算法一般用于生成数据的摘要信息,是a56爆大奖在线娱乐不
阅读全文
posted @ 2020-02-29 18:21 MyBeans
阅读(470)
评论(0)
推荐(0)
编辑
2020年2月28日
Shiro -- (五) 授权
摘要: 授权 授权,也叫访问控制,即在应用中控制谁能访问哪些资源(如访问页面/编辑数据/页面操作等)。在授权中需了解的几个关键对象:主体(Subject)、资源(Resource)、权限(Permission)、角色(Role)。 主体 主体,即访问应用的用户,在 Shiro 中使用 Subject 代表该
阅读全文
posted @ 2020-02-28 20:38 MyBeans
阅读(413)
评论(0)
推荐(0)
编辑
2020年2月27日
Shiro -- (四) 数据库支持
摘要: 主要就是JdbcRealm这个类 先看一下部分源码: 先建表:users(用户名 / 密码)、user_roles(用户 / 角色)、roles_permissions(角色 / 权限),并且往users里面插入一条数据 lc/123,其实也就用了一个users表登陆一下 创建ini文件: jdbc
阅读全文
posted @ 2020-02-27 16:39 MyBeans
阅读(474)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
14
下一页