spring和redis的版本不合,就会出现各种错误,下面是我实践的版本
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
//这个版本redis还需要导入这个
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
<version>2.5.0</version>
</dependency>
本文分享了在使用Spring框架整合Redis时的版本搭配经验,指出版本不匹配可能导致的各种错误,并提供了一套实践验证过的稳定版本组合,包括jedis、spring-data-redis及commons-pool2的具体版本号。

664

被折叠的 条评论
为什么被折叠?



