在给项目加redis缓存时,启动服务后报错了,报的是这两个错,麻烦大神们看看是什么原因:
No qualifying bean of type [org.springframework.data.redis.core.RedisTemplate] found for dependency: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}