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>
之后就没报错了