springboot与redisson整合时读取配置文件为null

1.背景

在springboot整合redisson是读取配置文件为null

2.解决方案

这两个jar包可能存在冲突

        <!-- redisson-spring-boot-starter -->
        <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson-spring-boot-starter</artifactId>
            <version>3.14.0</version>
        </dependency>
        <!-- redisson -->
      <!--  <dependency>
            <groupId>org.redisson</groupId>
            <artifactId>redisson</artifactId>
            <version>3.14.0</version>
        </dependency>-->

 

完美!

posted @ 2020-12-10 16:46  李东平|一线码农  阅读(765)  评论(0编辑  收藏  举报