MultipartException: Current request is not a multipart request

后端 未结 7 1021
一整个雨季
一整个雨季 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 09:47

    Check the file which you have selected in the request.

    For me i was getting the error because the file was not present in the system, as i have imported the request from some other machine.

提交回复
热议问题