Skip to content

Instantly share code, notes, and snippets.

@haigopi
Created November 7, 2020 01:13
Show Gist options
  • Save haigopi/20976af6872b787fee72833dd60e6e3e to your computer and use it in GitHub Desktop.
Save haigopi/20976af6872b787fee72833dd60e6e3e to your computer and use it in GitHub Desktop.
public interface PublisherApi {
@RequestMapping(value = "/publisher", method = RequestMethod.POST, consumes = {MediaType.MULTIPART_FORM_DATA_VALUE})
default ResponseEntity<Void> someCreatemethod(
@RequestPart("pictuures_1") MultipartFile[] pictures1,
@RequestPart("pictures_2") List<MultipartFile> pictures2, @RequestPart("publisher") JavaObject publisher) throws URISyntaxException, Exception {
// Debuuger Point.
System.out.println(pictures1.length +" -- "+ pictures2.size);
return null;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment