一、required a bean of type ‘org.springframework.data.redis.core.StringRedisTemplate’ that could not be found.! 查看pom文件boot的版本和redis的版本是否相同 修改相同即可