写bug的小杨

导航

报错"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  迷途的小狗  阅读(9545)  评论(1编辑  收藏  举报