1. 问题描述
Parameter 0 of method setFunctionDomainRedisTemplate in com.uhope.hzz.util.RedisOperateUtil required a single bean, but 2 were found:
- redisTemplate: defined by method ‘redisTemplate’ in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration R e d i s C o n f i g u r a t i o n . c l a s s ] − s t r i n g R e d i s T e m p l a t e : d e f i n e d b y m e t h o d ′ s t r i n g R e d i s T e m p l a t e ′ i n c l a s s p a t h r e s o u r c e [ o r g / s p r i n g f r a m e w o r k / b o o t / a u t o c o n f i g u r e / d a t a / r e d i s / R e d i s A u t o C o n f i g u r a t i o n RedisConfiguration.class] - stringRedisTemplate: defined by method 'stringRedisTemplate' in class path resource [org/springframework/boot/autoconfigure/data/redis/RedisAutoConfiguration RedisConfigurati