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>
相关推荐
IT规划师2 小时前
Redis 核心机制 | 客户端缓存(Client-side Caching)
redis·.net10·客户端缓存
جيون داد ناالام ميづ3 小时前
四、MyBatis 核心原理:拆解 7 大组件 + SQL 执行全流程
数据库·sql·mybatis
Flynn Liang17 小时前
全栈实战:从零搭建一套可落地的生产级 AI 智能体系统(Redis 版)
人工智能·redis·ai agent
船神丿男人21 小时前
DevDocQA 的 Redis 答案缓存实战:版本切换、异步写回与故障排查
数据库·redis·缓存
吃我一窝jio1 天前
Python与Redis集合深度解析
开发语言·redis·笔记·python
CoderYanger1 天前
Java EE 进阶:12.Spring AOP(第二弹)
java·前端·数据库·spring boot·spring·java-ee·mybatis
Joy T1 天前
MySQL Outbox、Redis Streams 与 LangGraph——如何构建可靠的异步 AI Agent
数据库·redis·mysql·任务队列·redis streams·mysql outbox
captain3761 天前
Redis简单使用
数据库·redis·缓存
代码不停1 天前
Redis基本数据类型
数据库·redis
IT规划师1 天前
Redis 核心机制 | Pipeline 与 Batch:降低网络 RTT
redis·pipeline·batch·rtt·.net10