数据库
首页 > 数据库> > springboot redis Unsatisfied dependency expressed through method ‘redisTemplate‘ parameter 0

springboot redis Unsatisfied dependency expressed through method ‘redisTemplate‘ parameter 0

作者:互联网

pom.xml中导入包更换写

<dependency>
     <groupId>org.springframework.data</groupId>
     <artifactId>spring-data-redis</artifactId>
</dependency>

换成

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-data-redis</artifactId>
    <exclusions>
       <exclusion>
            <groupId>io.lettuce</groupId>
            <artifactId>lettuce-core</artifactId>
       </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>redis.clients</groupId>
    <artifactId>jedis</artifactId>
</dependency>

 

标签:Unsatisfied,springboot,spring,boot,redis,springframework,lettuce,data
来源: https://blog.csdn.net/zhang8907xiaoyue/article/details/110070767