fix: 修复 Redisson 与 Spring Boot 2.7.x 版本冲突的问题

1.报错信息:Caused by: java.lang.ClassNotFoundException:org.springframework.data.redis.connection.zset.Tuple
2.解决方案:将 redisson-spring-data-30(对应 Spring Boot 3.0.x 版本) 调整为 redisson-spring-data-27(对应 Spring Boot 2.7.x 版本)
This commit is contained in:
Charles7c 2023-08-17 00:04:08 +08:00
parent 6fc6b36d6c
commit 76622c238f
2 changed files with 15 additions and 0 deletions

View File

@ -138,6 +138,10 @@ limitations under the License.
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-boot-starter</artifactId>
</dependency>
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson-spring-data-27</artifactId>
</dependency>
<!-- Easy CaptchaJava 图形验证码,支持 gif、中文、算术等类型可用于 Java Web、JavaSE 等项目) -->
<dependency>

11
pom.xml
View File

@ -170,6 +170,17 @@ limitations under the License.
<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>
<!-- Easy CaptchaJava 图形验证码,支持 gif、中文、算术等类型可用于 Java Web、JavaSE 等项目) -->