加入FeignClient项目启动报错:Could not resolve element type of Iterable type xxxx. Not declared?

问题如图:
在这里插入图片描述
是因为在定义消费者service方法时忘记定义参数的泛型。
解决方法:
在这里插入图片描述 1.定义方法时不要忘记加泛型 2.避免报错要加对应的注解声明参数名 路径参数用@PathVariable 一般参数用@RequestParam(“videoIdList”)