There is such a method:
@RequestMapping(value = "/request", method = RequestMethod.POST) public @ResponseBody ServiceResponse regDocs( @RequestPart("uploadInfo") UploadInfo uploadInfo, MultipartHttpServletRequest request) { ... } The UploadInfo class in turn also consists of classes. I'm trying to call this POST method via Advanced REST-client (this is a plugin for Chrome), I specify the address: http: // host: 9080 / services / request I don’t know where to specify the values of this class? I tried to write json something like
{ "uploadInfo":[{ "Class1":"value", "Class2":"value", ... }] } tried a few more options, all the time writing
Error 400: Required request part 'uploadInfo' is not present.
uploadInfo do I need to fill in uploadInfo ?