I need to send a file alongside with a json to my Spring Controller. I have the following controller class:
@Controller
@RequestMapping(\"/perform\")
public cla
I've found the solution: I need to use @RequestParam instead of @RequestPart
@RequestMapping(path = "gopdf", method = RequestMethod.POST, consumes = { "multipart/form-data" })
@ResponseStatus(HttpStatus.OK)
public void handleFileUpload2(@RequestParam("file") MultipartFile file, @RequestParam("map") String jsonMap,
HttpServletResponse response) throws Exceptio