Shiro
文章平均质量分 94
OK_boom
大龄搬砖工,酷爱计算机技术,java/C#/android/free pascal/C++。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
EasyShiro-可用于分布式应用的鉴权工具
EasyShiro特色1/简单易用几乎开箱即用,不用写冗余繁琐的代码。登录后储存在Principal的为内置的UserDtoWithPermission,它是AuthenticationWithPermission的实现,包含如下信息:account/roles/permissions2/轻装上阵没有集成数据库,AbstractAccountRealm留有接口可以自行实现login(身份认证)和getAuthorization(获取授权),所以你可以用mysql,postsql或memory任原创 2022-03-15 17:53:56 · 2156 阅读 · 5 评论 -
真正可用的springboot2集成带缓冲功能的shiro
由于要配置shiro的细节,所以不依赖shiro starter, pom.xml增加如下:<!-- https://mvnrepository.com/artifact/net.sf.ehcache/ehcache --> <dependency> <groupId>net.sf.ehcache</g...原创 2019-07-19 16:46:17 · 542 阅读 · 0 评论 -
Springboot+shiro登出的两种方式
第一种,利用shiro自带的登出处理,在filter表里加上登出的过滤,如下代码中的filterChainDefinitionMap.put("/auth/logout", "logout");@Bean("shiroFilter") public ShiroFilterFactoryBean shirFilter(DefaultWebSecurityManager security...原创 2019-07-19 12:30:16 · 12177 阅读 · 1 评论
分享