使用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. mysql5.7.17配置_mysql5.7.17安装配置
  2. 力扣——有序链表转换二叉搜索树
  3. 【机器学习】SVM线性可分
  4. 合影效果(信息学奥赛一本通-T1182)
  5. 常见面试题思想方法整理
  6. c语言缩写一个人的名字,用C语言输入一个人的英文名字统计个数输出
  7. linux dstat工具
  8. vncviewer远程连linux白屏,vncviewer远程链接桌面linux
  9. IT资源书籍999999999本
  10. HTML5前端开发实战04-儿童摄影
  11. linux阿帕奇服务器配置方案,阿帕奇服务器_服务器配置方案_linux配置apache服务器...
  12. Windows安全中心打开空白
  13. 官宣 慧存医疗与泽平科技战略合作1
  14. 【073】首届工控中国大会|翼辉为自主生态共建发声
  15. linux uvc 拍照程序,Linux UVC driver
  16. 2021-12-23 网工基础(十四) 链路聚合的两种模式、堆叠、集群、IP路由基础
  17. antd表格显示分页怎么取消_react + Ant Design 实现table表格分页和删除
  18. 滴滴拼车变绿:下沉、烧钱、焦虑
  19. Opencv(python)图像梯度和边缘检测算法
  20. 某宝sign手稿记录

热门文章

  1. 【前端学习 - CSS (1)Hover 事件】
  2. R5-3600X和i5-9600kf哪个好?
  3. XSS过滤绕过速查表
  4. mysql mha windows_mysql MHA
  5. Ext2nd Sensor Hot plug\Unplug
  6. 《人性的弱点》佳句收藏
  7. 视频教程-HTML5与CSS3初级入门-HTML5/CSS
  8. IMU预积分模型分析
  9. 【P53】基于TPS61093的典型单电源转双电源电路
  10. oracle 查询awr快照,管理AWR快照