根据类名注入 类型不对
改成stringRedisTemplate,好了,原因@Resource是默认取字段名进行按照名称注入
StringRedisTemplate与RedisTemplate 这两个数据是不互通的
Original: https://www.cnblogs.com/qq376324789/p/16435692.html
Author: 笑~笑
Title: Bean named ‘redisTemplate’ is expected to be of type ‘org.springframework.data.redis.core.StringRedisTemplate’ actually of type ‘org.springframework.data.redis.core.RedisTemplate’
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/529198/
转载文章受原作者版权保护。转载请注明原作者出处!