学无先后,达者为师

网站首页 编程语言 正文

Redis - Redis command timed out nested exception is io.lettuce.core.RedisCommandTimeoutException

作者:YXWik6 更新时间: 2022-02-18 编程语言

Redis - Redis command timed out nested exception is io.lettuce.core.RedisCommandTimeoutException

这个问题应该是我在将SpringBoot1.X升级到2.X的时候产生的版本问题。
原pom中的redis依赖
在这里插入图片描述

更改为

	<dependency>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-starter-data-redis</artifactId>
			<exclusions>
				<exclusion>
					<groupId>io.lettuce</groupId>
					<artifactId>lettuce-core</artifactId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>redis.clients</groupId>
			<artifactId>jedis</artifactId>
	</dependency>

在这里插入图片描述
之后就没报错了

原文链接:https://blog.csdn.net/YXWik/article/details/120353975

栏目分类
最近更新