shirley_924

导航

统计

报错"Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.RedisAutoConfiguration required a bean of type 'org.springframework.data.redis.connection.RedisConnec"

 

解决办法:

 

pom文件的redis依赖改成

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-redis</artifactId>
<version>1.3.8.RELEASE</version>
</dependency>

 

posted on 2019-12-10 17:07  迷途的小狗  阅读(...)  评论(...编辑  收藏