my question is very simple, It's possibily use two different content-type headers on the same method?
like that:
@RequestMapping(value = "/provider", method = RequestMethod.POST, headers = "Accept=application/json,content-type=multipart/form-data")
@ResponseBody
@Transactional
public ResponseEntity<String> createProviderQuote(
@RequestParam(value = "work", required = true) String workId,
UriComponentsBuilder uriComponentsBuilder, final HttpServletRequest request) {
}
I need to send a Json Object with Images (Multipart Files), but I have not succeeded. For that reason I use headers:
headers = "Accept=application/json,content-type=multipart/form-data"
Many Thanks!