restTemplat发post请求报错Content type ‘application/xml;charset=UTF-8‘ not supported“
背景:本人发送post请求,报错{"result":"FAILED","timestamp":"1634171535020","errorMessage":"Content type 'application/xml;charset=UTF-8' not supported"}看了下,请求头没问题的,另辟蹊径,用其他方式代替,暂时避免了这个问题的发生。解决方式1:自己封装http的post请求/....

Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8
强烈推荐一个大神的人工智能的教程:http://www.captainai.net/zhanghan【前言】 最近在用restTemplate进行一次http请求时发现了报错(Error while extracting response for type [class xxx] and content type application/xm....
![Error while extracting response for type [class xxx] and content type application/xml;charset=UTF-8](https://ucc.alicdn.com/pic/developer-ecology/zt3gtptdohv2k_f0ef207df876493a8e581946925c79da.jpg)
webapi “ObjectContent`1”类型未能序列化内容类型“application/xml; charset=utf-8”的响应正文。
今天在来一发 webapi的一个知识点 相信用过webapi的对这个错误 已经看在眼里 痛在心里了把 我百度也搜了一下 看了一下 然后发现他们的解决办法 并没有什么软用。 然后想起来当时上学的时候 老师讲过这个知识点 然后又找到了 老师 0.0 当时老师写的一个笔记。我直接上截图了。 ...
本页面内关键词为智能算法引擎基于机器学习所生成,如有任何问题,可在页面下方点击"联系我们"与我们沟通。
开发与运维
集结各类场景实战经验,助你开发运维畅行无忧
+关注