Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.Redis

2021/7/24 2:18:08

本文主要是介绍Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.Redis,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

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

Action:
Consider revisiting the entries above or defining a bean of type ‘org.springframework.data.redis.connection.RedisConnectionFactory’ in your configuration.
 

将pom文件里的redis依赖换成

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

 

 



这篇关于Parameter 0 of method stringRedisTemplate in org.springframework.boot.autoconfigure.data.redis.Redis的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程