redis报错io.lettuce.core.RedisCommandTimeoutException: Command timed out after

具体原因不详 就是莫名其妙的,如下办法解决了,排除掉lettuce-core使用jedis

<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>

 

posted @ 2021-09-14 13:52  明年上初中  阅读(3815)  评论(0编辑  收藏  举报