error info: feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverte
使用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相关推荐
- feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter found
出错的代码: UserBaseDto lmsInfo = userBaseClient.getUserById(pointMqVo.getUserId(), pointMqVo.getPlatform ...
- 【feign】feign.codec.DecodeException: Could not extract response: no suitable HttpMessageConverter
问题描述 在springboot 2的版本中通过feign进行调用,在引入私服jar包并进行调用时,报错: feign.codec.DecodeException: Could not extract ...
- feign.codec.DecodeException异常解决方案
使用feign两个服务之间调用,遇到下面的错误 14:49:18.197 logback [ForkJoinPool.commonPool-worker-2] WARN o.s.h.c.j.Mappi ...
- 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. ...
- 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 ...
- feign.codec.DecodeException: Error while extracting response for type
报错信息 feign.codec.DecodeException: Error while extracting response for type [java.util.List<cn.xxx ...
- openfeign远程调用接口报错:feign.codec.DecodeException: Error while extracting response for type
错误信息: feign.codec.DecodeException: Error while extracting response for type [java.util.List<xxxx. ...
- 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 ...
- Could not extract response: no suitable HttpMessageConverter found for content type [text/html]
目录 报错信息 源码分析 解决方法 修改 mappingJackson2HttpMessageConverter 配置 继承 mappingJackson2HttpMessageConverter 实 ...
最新文章
- mysql5.7.17配置_mysql5.7.17安装配置
- 力扣——有序链表转换二叉搜索树
- 【机器学习】SVM线性可分
- 合影效果(信息学奥赛一本通-T1182)
- 常见面试题思想方法整理
- c语言缩写一个人的名字,用C语言输入一个人的英文名字统计个数输出
- linux dstat工具
- vncviewer远程连linux白屏,vncviewer远程链接桌面linux
- IT资源书籍999999999本
- HTML5前端开发实战04-儿童摄影
- linux阿帕奇服务器配置方案,阿帕奇服务器_服务器配置方案_linux配置apache服务器...
- Windows安全中心打开空白
- 官宣 慧存医疗与泽平科技战略合作1
- 【073】首届工控中国大会|翼辉为自主生态共建发声
- linux uvc 拍照程序,Linux UVC driver
- 2021-12-23 网工基础(十四) 链路聚合的两种模式、堆叠、集群、IP路由基础
- antd表格显示分页怎么取消_react + Ant Design 实现table表格分页和删除
- 滴滴拼车变绿:下沉、烧钱、焦虑
- Opencv(python)图像梯度和边缘检测算法
- 某宝sign手稿记录