解决办法:检查先前是否import了import org.springframework.boot.autoconfigure.data.redis.RedisProperties.Jedis; 如果有,删掉即可错误消失。