redis服务器版本升级问题

java 复制代码
org.springframework.data.redis.RedisSystemException: Unknown redis exception; nested exception is org.springframework.data.redis.connection.PoolException: Could not get a resource from the pool; nested exception is io.lettuce.core.RedisException: java.lang.UnsupportedOperationExceptionCaused by: io.lettuce.core.RedisException: java.lang.UnsupportedOperationException

升级了redis服务为7.多后报上面那个错误:

解决方法:

java 复制代码
<dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-data-redis</artifactId>
            <exclusions>
                <exclusion>
                    <groupId>io.lettuce</groupId>
                    <artifactId>lettuce-core</artifactId>
                </exclusion>
                <exclusion>
                    <artifactId>spring-boot-starter-logging</artifactId>
                    <groupId>org.springframework.boot</groupId>
                </exclusion>
            </exclusions>
        </dependency>
        <dependency>
            <groupId>io.lettuce</groupId>
            <artifactId>lettuce-core</artifactId>
            <version>6.1.2.RELEASE</version>
        </dependency>
相关推荐
ShineWinsu7 小时前
对于Redis:Hash类型的解析
c++·redis·分布式·缓存·面试·hash·哈希表
.Hypocritical.7 小时前
Redis从入门到实战:核心原理、场景落地与避坑指南
数据库·redis·缓存
用户6222884048197 小时前
Redis 分布式锁:从 2.8 之前到 2.8+,一篇讲透
redis
程序猿乐锅10 小时前
【黑马点评 | 第十一篇】关注 Feed 流实现
java·数据库·redis·分布式·后端·缓存·maven
ShineWinsu10 小时前
对于Redis:List类型的解析
数据库·c++·redis·链表·缓存·面试·list
XS03010611 小时前
Redis 学习指南
数据库·redis·缓存
夕除12 小时前
redis--集群
java·redis
喜欢的名字被抢了12 小时前
09-Redis 进阶原理篇:单线程、多线程、过期、LRU-LFU、Fork 与 Lua
数据库·redis·lua
shuoshuohaohao21 小时前
MyBatis 小知识点
java·spring·mybatis
zl_dfq1 天前
Redis 之 【高可用架构】(从主从复制、哨兵到集群)
redis