SpringBoot中注入RedisTemplate實例異常解決

最近,在項目開發過程當中使用了RedisTemplate,進行單元測試時提示「Field redisTemplate in com.example.demo1.dao.RedisDao required a bean of type ‘org.springframework.data.redis.core.RedisTemplate’ that could not be found」,翻譯過來就是
相關文章
相關標籤/搜索