問題描述
Spring Cloud Feign呼叫其它服務報錯,錯誤提示如下:Failed to instantiate [java.util.List]: Specified class is an interface。
解決方案
通過查詢一些資料,得到的結論,是定義介面傳遞的引數時,沒有用@RequestBody修飾,檢視定義介面有用@RequestBogy修飾,Feign的介面實現裡沒有用@RequestBody修飾,新增後問題就解決了,以後還是要仔細看待每個問題。


Spring Cloud Feign呼叫其它服務報錯,錯誤提示如下:Failed to instantiate [java.util.List]: Specified class is an interface。
通過查詢一些資料,得到的結論,是定義介面傳遞的引數時,沒有用@RequestBody修飾,檢視定義介面有用@RequestBogy修飾,Feign的介面實現裡沒有用@RequestBody修飾,新增後問題就解決了,以後還是要仔細看待每個問題。