全部 ApiPost使用 后端 前端 接口测试 IOS Android 数据库 2022 测试技术 工具
问答 / 问答详情

ApiPost关于put请求和delete请求无法正常使用

ApiPost使用 952次浏览

相同的接口在EOLINKER和postman中均可以正常请求,但是在apipost中会报这个异常

2020-03-12 21:24:43.378 ERROR 17360 --- [nio-2020-exec-5] o.a.c.c.C.[.[.[/].[dispatcherServlet]    : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.web.multipart.MultipartException: Failed to parse multipart servlet request; nested exception is java.io.IOException: org.apache.tomcat.util.http.fileupload.FileUploadException: the request was rejected because no multipart boundary was found] with root cause

奇怪的是 我并没有该接口并不是上传文件的接口,而且在接口中我也只是使用的put请求,访问参数为正常的text参数

此为接口示例

localhost:2020/announcement/Announcement?title=测试公告标题&content=测试公告内容&userType=1

| 0 收藏

1 个回答

更改下content-type试下
Apipost 私有化火热进行中

撰写答案

只服务于

前后端、移动端、测试人员

提问题 发布您遇到的Bug和问题,上万名大牛和开发者来帮您解决!