首先查看本地或远程redis是否启动,不启动服务无法从线程池获取线程,导致出错
-
org.springframework.data.redis.RedisConnectionFailureException:CannotgetJedisconnection;nestedexceptionisredis.clients.jedis.exceptions.JedisConnectionException:Couldnotgetaresourcefromthepool1.设置超时时间2.关闭虚拟机防火墙,serviceiptablesstop3.网络原因(需要设
-
org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
1.设置超时时间
2.关闭虚拟机防火墙 ,service iptables stop
3.网络原因(需要设置代理)
4.ip 错误