解决方案:在调用服务和被调用的服务上都加上一个配置类
@Configuration
public class jsonConfig {@Beanpublic HttpMessageConverters fastJsonHttpMessageConverters() {//1.需要定义一个convert转换消息的对象;FastJsonHttpMessageConverter fastJsonHttpMessageConverter = new FastJsonHttpMessageConverter();//2处理ie浏览器保存数据时出现下载json数据问题List fastMediaTypes = new ArrayList<>();fastMediaTypes.add(MediaType.TEXT_PLAIN);//3.在convert中添加配置信息.fastJsonHttpMessageConverter.setSupportedMediaTypes(fastMediaTypes);HttpMessageConverter<?> converter = fastJsonHttpMessageConverter;return new HttpMessageConverters(converter);}}

openFeig远程调用报错Could not extract response: no suitable HttpMessageConverter found for response type相关推荐

  1. 使用RestTemplate:报错Could not extract response: no suitable HttpMessageConverter found for response typ

    项目中需要调用微信接口获取access_token等一系列和微信接口相关的操作,我使用了Spring自带的RestTemplate类来发送Get或Post请求,直接在Spring配置文件中依赖注入 & ...

  2. 小小涉及OpenFeign原理:Could not extract response: no suitable HttpMessageConverter found for response type

    一.问题解释(想看总结的去最下面) org.springframework.web.client.UnknownContentTypeException: Could not extract resp ...

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

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

  4. Could not extract response: no suitable HttpMessageConverter found for response type [class com.exam

    报错信息:Could not extract response: no suitable HttpMessageConverter found for response type [class com ...

  5. RestTemplate请求Could not extract response: no suitable HttpMessageConverter found for response type..

    使用 Spring Boot 写项目,需要用到微信接口获取用户信息. 在 Jessey 和 Spring RestTemplate 两个 Rest 客户端中,想到尽量不引入更多的东西,然后就选择了 S ...

  6. Could not extract response: no suitable HttpMessageConverter found for response type ***

    用RestTemplate.getForObject()获取URL的JSON时,可能会遇到如题所示的报错信息. 我的问题在于:在非MVC的Project中使用RestTemplate. 简单的说,me ...

  7. 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. ...

  8. 远程调用报错java.net.UnknownHostException 解决方法

    服务本来好好的,突然调用远程接口一直报java.net.UnknownHostException 解决方法,检查了一遍ip和路径都没问题,同一个接口用postman调用又没有问题,百思不得解... 最 ...

  9. SpringCloud远程调用报错feign.FeignException: status 405 reading FlightDataClient

    报错信息如下 这是由于在feign的client中对应的方法没有添加@RequestParam注解指定参数名称所导致的,添加上即可调用成功! PS:参数名称一致也得添加,具体原因我还暂不清楚~

最新文章

  1. linux那点事儿(五)----用户管理常用命令 (转)
  2. python开发跟淘宝有关联微_使用Python分析淘宝用户行为
  3. php 执行文件tar打包,利用tar for windows对大量文件进行快速打包
  4. html5文件域的自动获取,HTML5 文件域+FileReader 读取文件(一)
  5. 如何备份数据_如何通过归档、备份和灾难恢复实现多云数据保护
  6. 原创《如何用vue来轻松的驾驭 html5 webapp的页面体验》
  7. HttpModule,HttpHandler 简介
  8. Linux sed命令实例详解
  9. docker-compose教程(安装,使用, 快速入门)
  10. flash player 10 音频新API使用:调节音高(pitch)
  11. 伯克利弹跳机器人再进化:超精准着陆,指哪打哪
  12. AS3.0中的显示编程(五)-- Loader(加载器)
  13. 学java编程语言_对于零基础的人而言 该如何学Java编程语言
  14. 语言用符号打印出落叶的图案_普通语言学概要(第一章第二节,语言是符号系统)...
  15. 第0课【课前准备】Keil安装 ISP程序下载
  16. 【地图API】地址录入时如何获得准确的经纬度?淘宝收货地址详解
  17. SPI协议学习Cubmx——读写Flash W25Q64
  18. 与计算机硬件关系最密切的软件是A,计算机应用基础试卷A1112_2.doc
  19. 基于Anaconda 搭建 OpenCV for Python 环境(全平台通用)
  20. 测绘计算机编程在在道路中的应用,Casiofx-5800P计算器三个公路基本测量程序编写...

热门文章

  1. 【图】如果要开始收房产税,那香港这座山上的房子得收多少?
  2. 真实月活仅3.7万,矿工横行 —— EOS DApp生态爆发背后的隐患
  3. vmvare搭建k8s集群
  4. 来,做一道字节跳动面试的简单算法题
  5. connet by用法一则
  6. Xcode 关闭ARC的方法
  7. 手机和单反变焦的区别 安卓相机
  8. 解决MFC 的 CButton改变样式问题,使用重绘方式。(转载)
  9. 罗斯蒙特流量计安装上的五大注意事项
  10. 孙鑫VC++LESSON3:MFC框架程序剖析