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

Solution:

https://blog.csdn.net/langeldep/article/details/82979665

 

pom.xml file and add the following dependency:

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

Guess you like

Origin www.cnblogs.com/python924/p/12017825.html