RedisTemplate自动注入报错问题
我这里的解决方法是将springboot的版本由2.7.8将为了2.5.7版本后报错就消失了,为什么高版本制动注入RedisTemplate还有待研究。
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<!-- 降低springboot版本 -->
<!-- <version>2.7.8</version> -->
<version>2.5.7</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>