Geting HTTP Status 400 - Required MultipartFile parameter 'file' is not present in spring

后端 未结 3 385
小蘑菇
小蘑菇 2021-01-12 14:14

I am trying to upload a file using spring. Below is my code how I am working on it but if I try to use it I am getting this response:

HTTP

3条回答
  •  情话喂你
    2021-01-12 14:44

    when you select the file in advance rest client, on the right side there is a input box, write in that input box name of the parameter, in your case name of parameter is file

    Parameter name defined here in controller @RequestParam("file")

提交回复
热议问题