openFeig远程调用报错Could not extract response: no suitable HttpMessageConverter found for response type
解决方案:在调用服务和被调用的服务上都加上一个配置类 @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相关推荐
- 使用RestTemplate:报错Could not extract response: no suitable HttpMessageConverter found for response typ
项目中需要调用微信接口获取access_token等一系列和微信接口相关的操作,我使用了Spring自带的RestTemplate类来发送Get或Post请求,直接在Spring配置文件中依赖注入 & ...
- 小小涉及OpenFeign原理:Could not extract response: no suitable HttpMessageConverter found for response type
一.问题解释(想看总结的去最下面) org.springframework.web.client.UnknownContentTypeException: Could not extract resp ...
- Could not extract response: no suitable HttpMessageConverter found for content type [text/html]
目录 报错信息 源码分析 解决方法 修改 mappingJackson2HttpMessageConverter 配置 继承 mappingJackson2HttpMessageConverter 实 ...
- 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 ...
- RestTemplate请求Could not extract response: no suitable HttpMessageConverter found for response type..
使用 Spring Boot 写项目,需要用到微信接口获取用户信息. 在 Jessey 和 Spring RestTemplate 两个 Rest 客户端中,想到尽量不引入更多的东西,然后就选择了 S ...
- Could not extract response: no suitable HttpMessageConverter found for response type ***
用RestTemplate.getForObject()获取URL的JSON时,可能会遇到如题所示的报错信息. 我的问题在于:在非MVC的Project中使用RestTemplate. 简单的说,me ...
- 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. ...
- 远程调用报错java.net.UnknownHostException 解决方法
服务本来好好的,突然调用远程接口一直报java.net.UnknownHostException 解决方法,检查了一遍ip和路径都没问题,同一个接口用postman调用又没有问题,百思不得解... 最 ...
- SpringCloud远程调用报错feign.FeignException: status 405 reading FlightDataClient
报错信息如下 这是由于在feign的client中对应的方法没有添加@RequestParam注解指定参数名称所导致的,添加上即可调用成功! PS:参数名称一致也得添加,具体原因我还暂不清楚~
最新文章
- linux那点事儿(五)----用户管理常用命令 (转)
- python开发跟淘宝有关联微_使用Python分析淘宝用户行为
- php 执行文件tar打包,利用tar for windows对大量文件进行快速打包
- html5文件域的自动获取,HTML5 文件域+FileReader 读取文件(一)
- 如何备份数据_如何通过归档、备份和灾难恢复实现多云数据保护
- 原创《如何用vue来轻松的驾驭 html5 webapp的页面体验》
- HttpModule,HttpHandler 简介
- Linux sed命令实例详解
- docker-compose教程(安装,使用, 快速入门)
- flash player 10 音频新API使用:调节音高(pitch)
- 伯克利弹跳机器人再进化:超精准着陆,指哪打哪
- AS3.0中的显示编程(五)-- Loader(加载器)
- 学java编程语言_对于零基础的人而言 该如何学Java编程语言
- 语言用符号打印出落叶的图案_普通语言学概要(第一章第二节,语言是符号系统)...
- 第0课【课前准备】Keil安装 ISP程序下载
- 【地图API】地址录入时如何获得准确的经纬度?淘宝收货地址详解
- SPI协议学习Cubmx——读写Flash W25Q64
- 与计算机硬件关系最密切的软件是A,计算机应用基础试卷A1112_2.doc
- 基于Anaconda 搭建 OpenCV for Python 环境(全平台通用)
- 测绘计算机编程在在道路中的应用,Casiofx-5800P计算器三个公路基本测量程序编写...