I want to send an object to the controller that has several lists with files and several fields with plain text.
public class ContributionNew
Instead of @RequestBody, use @ModelAttribute like,
@PostMapping(value = "/{id}/contributions/photos")
@ResponseStatus(HttpStatus.CREATED)
public
ResponseEntity createPhotoContribution(
@ApiParam(value = "The movie ID", required = true)
@PathVariable("id") final Long id,
@ApiParam(value = "The contribution", required = true)
@ModelAttribute @Valid final ContributionNew contribution
) {