![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
shiro
泼墨画丹青
这个作者很懒,什么都没留下…
展开
-
shiro整合redis做缓存管理器报错class java.lang.String must has getter for field
shiro整合redis做缓存管理器的时候报错:class java.lang.String must has getter for field: authCacheKey or id\nWe need afield to identify this Cache Object in Redis. So you need to defined an id fieldwhich you can...原创 2019-07-02 17:15:35 · 2066 阅读 · 0 评论 -
shiro+springboot自定义sessionId
在shiro中,默认返回的sessionId是uuid或者是random随机的,我们可能需要根据我们的需求进行重写,需要重写sessionId我们只需要写一个类实现SessionIdGenerator中的generateId就行1.自定义sessionId生成自定义CustomSessionIdGenerator实现SessionIdGenerator接口,重写generateId(...原创 2019-07-03 09:12:57 · 7217 阅读 · 0 评论