问题

1 . Current request is not a multipart request

Content-type不正确或者上传文件为空时会发生这种问题

FileUploadException: the request was rejected because no multipart boundary was found

2 . 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

将Content-type手动设置为"multipart/form-data"会出现此问题
FileUploadException: the request was rejected because no multipart boundary was found

解决

ajax请求参数中设置 contentType:false,
FileUploadException: the request was rejected because no multipart boundary was found

相关文章:

  • 2021-10-17
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
  • 2021-08-31
  • 2022-12-23
  • 2021-09-24
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-19
  • 2021-12-05
  • 2021-12-28
  • 2022-02-12
  • 2021-03-31
相关资源
相似解决方案