初步排查的原因应该是,方法传入的参数和接收的参数,个数不一致,或者类型不一致,就会出错。415是HTTP协议的状态码,415的含义是不支持的媒体类型(Unsupported media type),检查是否在POST请求中加入了header,header中是否包含了正确的Content-Type。
Add Content-Type:application/jsonand Accept:application/json.
Request content type is set to ("Content-Type", "application/json; charset=utf8")。
本文介绍了如何解决HTTP状态码415错误,该错误通常由于请求的Content-Type不正确引起。文章提供了设置正确的Content-Type的方法。
4076

被折叠的 条评论
为什么被折叠?



