解决springboot项目中redis偶现超时问题
Redis command timed out, nested exception is io.lettuce.core.RediscommandTimeoutException iolettuce.core.RedisCcommandTimeoutExcepton问题解决将redis 的lettuce连接池换成jredis,因为jredis默认是发心跳包的,而lettuce是不发心跳包的 。应该跟腾讯云服务器也有关,每次redis用了几个小时后,就报这个超时的错误。看其他博客上阿里云没这个问题p
原创
2020-10-15 15:45:35 ·
8058 阅读 ·
0 评论