Screenshots:
Vue:
Springboot error:
Add the headers
09:02:09 [HTTP - nio - 88 - exec - 8] ERROR C.B.C.E xception. BDExceptionHandler - Could not 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
Org. Springframework. Web. Multipart. MultipartException: Could not 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
Don't add headers
The comments part of the add don't add is the same error,
Big help, genuflect is begged card for a day, meowed ~
CodePudding user response:
No one? His top! D=====( ̄ del  ̄ *) bCodePudding user response:
Now through the yaoCodePudding user response:
@ RequestMapping (value=https://bbs.csdn.net/topics/("/save "), and headers=(" the content-type=multipart/* "), the method=RequestMethod. POST), plus the header of the vue inside cut out and then give it a tryCodePudding user response:
Multipart/form - the data is transferring files with textCodePudding user response:
The