Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shiro 保存权限信息 redis存储的SimpleAuthorizationInfo 结果乱码 #141

Open
NMY-Y opened this issue Dec 22, 2020 · 0 comments
Open

Comments

@NMY-Y
Copy link

NMY-Y commented Dec 22, 2020

1.使用springboot + redis +shiro + shiro-redis
2. shiro自定义缓存实现,使用redisCacheManager ,使用的使shiro-redis的RedisCacheManager
image

  1. 序列化时redis结果乱码,有没有配置序列化的方法

image
`key:shiro:cache:org.spring.nmy.shiroredis.shiro.MyRealm.authorizationCache:1,

value: \xAC\xED\x00\x05sr\x00.org.apache.shiro.authz.SimpleAuthorizationInfoY\xEBJ\xD6^\xD0-T\x02\x00\x03L\x00\x11objectPermissionst\x00\x0FLjava/util/Set;L\x00\x05rolesq\x00~\x00\x01L\x00\x11stringPermissionsq\x00~\x00\x01xppsr\x00\x11java.util.HashSet\xBAD\x85\x95\x96\xB8\xB74\x03\x00\x00xpw\x0C\x00\x00\x00\x10?@\x00\x00\x00\x00\x00\x01t\x00\x05adminxsq\x00~\x00\x03w\x0C\x00\x00\x00\x10?@\x00\x00\x00\x00\x00\x01t\x00\x0Ctest:list123x
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant