当前项目使用的springboot版本是2.3.4..RELEASE 使用的jedis版本是2.9.0 经过查找发现springboot和jedis版本需要对应才行。
springboot版本为 2.1.3.RELEASE 可以用 jedis版本2.9.0
springboot版本为2.2.0.RELEASE 可以用jedis版本3.1.0
springboot版本为2.3.3.RELEASE 可以用jedis版本3.1.0
参考文章:https://blog.csdn.net/qq_42621977/article/details/115247176