相同的接口在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