redis不能获取连接,Could not get a resource from the pool
在服务器部署redis 4.0.0版本 ,项目更换redis信息之后,启动时爆了这个错 :
redis不能获取连接,Could not get a resource from the pool
然后找了半天,发现是jedis和redis版本对应不上,之前的redis版本是3.x的 ; 跟换jedis版本之后-->ok
下面给出对应信息 :
Jedis 2.x - 与 Redis 2.6.x 兼容
Jedis 3.x - 与 Redis 4.x 兼容
Jedis 4.x - 与 Redis 5.x 和 6.x 兼容
