ShiroRedisson-SpringBootShiro 框架集成 Redisson

联合创作 · 2023-09-28 11:07

Shiro框架集成Redisson

1.使用redisson包解决redis缓存
2.解决shiro-redis使用*查询时,导致redis长时间卡死
3.解决使用spring-boot-devtools,出现ClassCastException异常
4.支持redisson提供的编码类型,https://github.com/redisson/redisson/wiki/4.-data-serialization

如何使用?

引入Maven依赖或下载jar包

Maven

<dependency>
     <groupId>com.github.fartherp.spring.boot</groupId>
     <artifactId>shiro-redisson-spring-boot-starter</artifactId>
     <version>1.0.6</version>
</dependency>

Gradle

compile 'com.github.fartherp.spring.boot:shiro-redisson-spring-boot-starter:1.0.6'
浏览 1
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑
举报