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>
相关推荐
新world3 小时前
mybatis-plus从入门到入土(三):持久层接口之IService
mybatis
半新半旧5 小时前
python 整合使用 Redis
redis·python·bootstrap
daixin88487 小时前
什么是缓存雪崩?缓存击穿?缓存穿透?分别如何解决?什么是缓存预热?
java·开发语言·redis·缓存
daixin884810 小时前
Redis过期数据的删除策略是什么?有哪些?
数据库·redis·缓存
苦学编程的谢12 小时前
MyBatis_3
java·开发语言·后端·mybatis
guojl12 小时前
MyBatis最佳实践
后端·微服务·mybatis
幻灭行度13 小时前
通过redis_exporter监控redis cluster
数据库·redis·缓存
小白的代码日记14 小时前
MyBatis-Plus 通用 Service
mybatis
冷崖16 小时前
Redis缓存策略以及bigkey的学习(九)
redis·学习·缓存
Java初学者小白1 天前
秋招Day18 - MyBatis - 基础
java·数据库·mybatis