Jelajahi Sumber

fix 修复 新版本 Redisson 存在与 boot 2.X 的兼容性问题

疯狂的狮子li 3 tahun lalu
induk
melakukan
5c21e550a0
2 mengubah file dengan 16 tambahan dan 0 penghapusan
  1. 11 0
      pom.xml
  2. 5 0
      ruoyi-common/ruoyi-common-redis/pom.xml

+ 11 - 0
pom.xml

@@ -242,6 +242,17 @@
                 <groupId>org.redisson</groupId>
                 <artifactId>redisson-spring-boot-starter</artifactId>
                 <version>${redisson.version}</version>
+                <exclusions>
+                    <exclusion>
+                        <groupId>org.redisson</groupId>
+                        <artifactId>redisson-spring-data-30</artifactId>
+                    </exclusion>
+                </exclusions>
+            </dependency>
+            <dependency>
+                <groupId>org.redisson</groupId>
+                <artifactId>redisson-spring-data-27</artifactId>
+                <version>${redisson.version}</version>
             </dependency>
 
             <dependency>

+ 5 - 0
ruoyi-common/ruoyi-common-redis/pom.xml

@@ -28,6 +28,11 @@
             <artifactId>redisson-spring-boot-starter</artifactId>
         </dependency>
 
+        <dependency>
+            <groupId>org.redisson</groupId>
+            <artifactId>redisson-spring-data-27</artifactId>
+        </dependency>
+
         <dependency>
             <groupId>com.baomidou</groupId>
             <artifactId>lock4j-redisson-spring-boot-starter</artifactId>