I am trying to make a restful controller to upload files. I have seen this and made this controller:
@RestController public class MaterialController {
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.