加入FeignClient項目啓動報錯:Could not resolve element type of Iterable type xxxx. Not declared?

問題如圖: 是因爲在定義消費者service方法時忘記定義參數的泛型。 解決方法: 1.定義方法時不要忘記加泛型 2.避免報錯要加對應的註解聲明參數名 路徑參數用@PathVariable 一般參數用@RequestParam(「videoIdList」)
相關文章
相關標籤/搜索