Quantcast
Channel: Active questions tagged redis+java - Stack Overflow
Viewing all articles
Browse latest Browse all 2204

class file for redis.clients.jedis.JedisShardInfo not found

$
0
0

when I upgrade the jedis to version 4.2.3 in gradle.build:

    api "redis.clients:jedis:4.2.3"

show error:

/Users/xiaoqiangjiang/source/reddwarf/backend/retire/dolphin-common/src/main/java/misc/config/redis/RedisConfig.java:77: error: cannot access JedisShardInfo        return new JedisConnectionFactory(redisConfig);               ^  class file for redis.clients.jedis.JedisShardInfo not found

this is the redis config:

    @Bean    public JedisConnectionFactory redisConnectionFactory() {        var redisConfig = new RedisStandaloneConfiguration(redisHost, redisPort);        redisConfig.setPassword(redisPwd);        return new JedisConnectionFactory(redisConfig);    }

why did this error happen? what should I do to fix it? I have searched from google seems no one facing this problem.


Viewing all articles
Browse latest Browse all 2204

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>