MultipartException: Current request is not a multipart request

后端 未结 7 986
一整个雨季
一整个雨季 2020-12-13 09:36

I am trying to make a restful controller to upload files. I have seen this and made this controller:

@RestController
public class MaterialController {

             


        
相关标签:
7条回答
  • 2020-12-13 10:06

    I was also facing the same issue with Postman for multipart. I fixed it by doing the following steps:

    • Do not select Content-Type in the Headers section.
    • In Body tab of Postman you should select form-data and select file type.

    It worked for me.

    0 讨论(0)
提交回复
热议问题