redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool

这种情况可能是redis没连上,引用redis版本过高等等redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool_第1张图片
我遇到的问题如图显示,是密码没有设置,我linux安装redis的时候并没有设置密码,然后springboot项目中配置redis时,我把password写上了虽然没赋值,但是连接redis的时候依旧带上了
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool_第2张图片
解决:去掉password配置或者连接redis的时候不传password参数
redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool_第3张图片

你可能感兴趣的:(java,redis,jedis,linux)