問題1:redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out
問題2:redis.clients.jedis.exceptions.JedisConnectionException: Could not get a resource from the pool
今天在學習redis的jedis連接配接池,測試連接配接池工具類的時候,出現redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out。
百度了好幾種方法都沒解決,發現是由于自己的redis不知怎麼關閉了。
解決辦法:
重新打開redis 即可。