使用feign框架的@FeignClient调用GET请求,并接受json返回值的时候,会报Could not extract response: no suitable HttpMessageConverte 异常

需要在fastMediaTypes添加fastMediaTypes.add(MediaType.TEXT_PLAIN);配置

List<MediaType> fastMediaTypes = new ArrayList<MediaType>();fastMediaTypes.add(MediaType.APPLICATION_JSON_UTF8);
fastMediaTypes.add(MediaType.TEXT_PLAIN);fastJsonHttpMessageConverter.setSupportedMediaTypes(fastMediaTypes);

error info: feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverte相关推荐

  1. feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found

    出错的代码: UserBaseDto lmsInfo = userBaseClient.getUserById(pointMqVo.getUserId(), pointMqVo.getPlatform ...

  2. 【feign】feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter

    问题描述 在springboot 2的版本中通过feign进行调用,在引入私服jar包并进行调用时,报错: feign.codec.DecodeException: Could not extract ...

  3. feign.codec.DecodeException异常解决方案

    使用feign两个服务之间调用,遇到下面的错误 14:49:18.197 logback [ForkJoinPool.commonPool-worker-2] WARN o.s.h.c.j.Mappi ...

  4. Could not extract response: no suitable HttpMessageConverter found for response type [class java.lan

    解决 Could not extract response: no suitable HttpMessageConverter found for response type [class java. ...

  5. Could not extract response: no suitable HttpMessageConverter

    版本:spring-cloud-openfeign-core-2.1.1.RELEASE.jar,spring-webmvc-5.1.14.RELEASE.jar,jetty-server-9.4.4 ...

  6. feign.codec.DecodeException: Error while extracting response for type

    报错信息 feign.codec.DecodeException: Error while extracting response for type [java.util.List<cn.xxx ...

  7. openfeign远程调用接口报错:feign.codec.DecodeException: Error while extracting response for type

    错误信息: feign.codec.DecodeException: Error while extracting response for type [java.util.List<xxxx. ...

  8. feign.codec.EncodeException: Could not write request: no suitable HttpMessageConverter found f

    feign.codec.EncodeException: Could not write request: no suitable HttpMessageConverter found for req ...

  9. Could not extract response: no suitable HttpMessageConverter found for content type [text/html]

    目录 报错信息 源码分析 解决方法 修改 mappingJackson2HttpMessageConverter 配置 继承 mappingJackson2HttpMessageConverter 实 ...

最新文章

  1. 年度书单盘点 | “裁员潮”持续蔓延?职场没有铁饭碗,只有硬技能
  2. 第二讲 从图像到点云 笔记
  3. 【BZOJ2326】【HNOI2011】数学作业 [矩阵乘法][DP]
  4. 生活大爆炸第6季第12集
  5. scheduledexecutorservice 的使用_使用J.U.C实现定时任务
  6. 定义和使用含有泛型的类
  7. 关于Unsafe类的一点研究
  8. postman生成python代码_别再用手敲了,这个工具可以自动生成python爬虫代码
  9. Python队列完成多进程间通信
  10. powerbi python词云图_Python 练手项目: 抓取豆瓣陈情令评论,并制作词云图
  11. java filechannel 性能_FileChannel 和 MappedByteBuffer 实现上有什么不同?为什么性能差这么多?...
  12. python基于百度地图获取指定的经纬度信息
  13. 如何在csdn网站搜索自己写的博客文章
  14. 基于javaweb的超市管理系统设计与实现(含论文和源码)
  15. vb.net设置分辨率和缩放比例_配置高不一定性能强,Win 10做好这些设置才能“6到飞起”!...
  16. 服务器系统事件6013,系统-事件ID:6013
  17. JavaScript:实现PigeonHoleSort鸽巢排序算法(附完整源码)
  18. 半孔板设计需要注意细节问题
  19. 解决Redis manger 连接不上linux redis的问题
  20. swagger 接口参数顺序_swagger扩展为按代码定义顺序展示接口和字段

热门文章

  1. Lecture 10: (Textual) Question Answering
  2. SVG路径描边动画效果的实现
  3. mdadm: /etc/mdadm/mdadm.conf defines no arrays.
  4. 多人配音用什么软件?两分钟学会多人播音配音怎么弄
  5. 计算机数字音乐小酒窝,小酒窝数字简谱哪有?
  6. ccf-csp202109
  7. Python 三元表达式(条件表达式)
  8. 写一个包含【UDP接收】和【TCP发送】的中转站程序
  9. Maximum Subsequence Sum-解法与各种坑
  10. 协方差的计算公式例子_协方差的意义和计算公式