SpringBoot报错:Current request is not a multipart request

使用Postman测试SpringBoot项目上传文件时报错:

org.springframework.web.multipart.MultipartException: Current request is not a multipart request

SpringBoot报错:Current request is not a multipart request

解决方法如下图:

SpringBoot报错:Current request is not a multipart request

或者将Headers->Key->Content-Type(即图片上的那个)的Value值改为multipart/form-data也行

参考:

*


likeqc
ends

上一篇:python MultipartEncoder


下一篇:form表单中的enctype=“multipart/form-data“什么意思?