springboot集成redis报错Consider defining a bean of type 'org.springframework.data.redis.core.RedisTemplate' in your configu

我的解决方式

pom.xml中如果有配置

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

可能就是你的springboot版本的问题了,修改Springboot版本即可

<version>1.5.17.RELEASE</version>

如下图所示

 

Logo

一站式 AI 云服务平台

更多推荐