NoSuchMethodError: redis.clients.jedis.JedisShardInfo.setTimeout(I)V

 

Spring combined with the basic configuration of jedis reports the following error:

 

NoSuchMethodError: redis.clients.jedis.JedisShardInfo.setTimeout(I)V

 
Solution: I searched for various methods, and finally found that the version of the jedis jar package is too high, the most configured spring-data-redis.jar version is 1.4.1, and the jedis.jar is 2.1.0
 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326690974&siteId=291194637