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>

 

 

上一篇:图像处理算法的仿真平台之VGA时序


下一篇:【报错】ORA-02096: specified initialization parameter is not modifiable with this option