I am trying to build a Spring MVC controller which will receive a POSTed form with a parameter in JSON format, and have Spring automatically convert it to a Java object.
You can also use @RequestPart like this:
@RequestPart
@RequestMapping(value = "/issues", method = RequestMethod.POST, headers = "Content-Type=multipart/form-data") public String uploadIssue(@RequestParam("image") MultipartFile file, @RequestPart("issue") MyMessage issue)