springboot2.x redis Lettuce版本使用时报错
springboot2.x redis Lettuce版本使用时报错springboot2.x redis使用时报错原因解决方法
springboot2.x redis使用时报错
原因
在springboot2.x 以后 官方默认使用了 Redis 的lettuce客户端来代替jedis 客户端,替换的原因是Lettuce的底层是基于Netty 实现的,性能更加出色。Lettuce 在底层的线程池管理中 依赖了commons-pool2 如果你不引入 这个包就会直接报错。当然你也可以直接用 jedis 。
原创
2020-06-15 19:23:03 ·
1418 阅读 ·
0 评论