SpringBoot2整合Redis测试模块报错

启动项目正常但是使用测试模块进行测试就有问题,就会报下面的错

 Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate<?, ?>' available: expected single matching bean but found 2: redisTemplate,stringRedisTemplate

请问这是什么问题

这个问题直接将RedisTemplate应该换成stringRedisTemplate就可以解决

看这里:https://www.cnblogs.com/enshrineZither/p/3484534.html