问题描述 Spring Cloud Feign调用其它服务报错,错误提示如下:Failed to instantiate [java.util.List]: Specified class is an interface. 解决方案 通过查询一些资料,得到的结论,是定义接口传递的参数时,没有用@RequestBody修饰,查看定义接口有用@RequestBogy修饰,Feign的接口实现里没有用@RequestBody修饰,添加后问题就解决了,以后还是要仔细看待每个问题.…
上传文件调用外部服务报错: not a type supported by this encoder 查看SpringFormEncoder类的源码: public class SpringFormEncoder extends FormEncoder { public SpringFormEncoder() { this(((Encoder) (new feign.codec.Encoder.Default()))); } public SpringFormEncoder(Encoder de…
There was an unexpected error (type=Internal Server Error, status=500). status 404 reading HelloService#hello(); content: {"timestamp":"2018-08-22T09:28:56.585+0000","status":404,"error":"Not Found","…