JedisConnectionException: Could not get a resource from the pool

JedisConnectionException: Could not get a resource from the pool

ERR Client sent AUTH, but no password is set

注释掉配置里的password后,运行,出现新bug

java.net.SocketTimeoutException

我的redis配置

发现第一次访问时会出现那个异常,之后再次刷新浏览器异常消失,而且增加poolMaxWait的时间还是一样出现这种异常,发现增加timeout时间后正常

总而言之,redis连接不上的话,多考虑下配置问题

猜你喜欢

转载自my.oschina.net/u/2320807/blog/1634323