redisson-spring-data与Spring-Data-Redis的版本关系问题
redisson-spring-boot-starter
https://github.com/redisson/redisson/tree/master/redisson-spring-boot-starter
https://github.com/redisson/redisson/tree/master/redisson-spring-data#spring-data-redis-integration
将 Redisson 与 Spring Boot 库集成。依赖于Spring Data Redis模块。
支持 Spring Boot 1.3.x - 3.0.x
需要注意的是redisson-spring-boot-starter中redisson-spring-data与spring-boot-starter-data-redis中Spring-Data-Redis的版本关系,两者的对应关系如下
<dependency>
<groupId>org.redisson</groupId>
<!-- for Spring Data Redis v.1.6.x -->
<artifactId>redisson-spring-data-16</artifactId>
<!-- for Spring Data Redis v.1.7.x -->
<artifactId>redisson-spring-data-17</artifactId>
<!-- for Spring Data Redis v.1.8.x -->
<artifactId>redisson-spring-data-18</artifactId>
<!-- for Spring Data Redis v.2.0.x -->
<artifactId>redisson-spring-data-20</artifactId>
<!-- for Spring Data Redis v.2.1.x -->
<artifactId>redisson-spring-data-21</artifactId>
<!-- for Spring Data Redis v.2.2.x -->
<artifactId>redisson-spring-data-22</artifactId>
<!-- for Spring Data Redis v.2.3.x -->
<artifactId>redisson-spring-data-23</artifactId>
<!-- for Spring Data Redis v.2.4.x -->
<artifactId>redisson-spring-data-24</artifactId>
<!-- for Spring Data Redis v.2.5.x -->
<artifactId>redisson-spring-data-25</artifactId>
<!-- for Spring Data Redis v.2.6.x -->
<artifactId>redisson-spring-data-26</artifactId>
<!-- for Spring Data Redis v.2.7.x -->
<artifactId>redisson-spring-data-27</artifactId>
<!-- for Spring Data Redis v.3.0.x -->
<artifactId>redisson-spring-data-30</artifactId>
<version>3.20.1</version>
</dependency>