spring boot – Response Contentype coming as JSON instead. of XML responseafter Springboot upgrade 2.7.18. Springmvcweb – 5.3.32
In controller,
produces attribute is set to “application/json” and application/xml . after upgrading springboot from 2.0.3 to 2.7.18 and spring webmvc to 5.3.32. we are seeing json response instead of xml response . Please help to identify the root cause
@RequestMapping(value = “/{type}”, method = RequestMethod.POST, consumes = MediaType.MULTIPART_FORM_DATA_VALUE, produces = {MediaType.APPLICATION_XML_VALUE,MediaType.APPLICATION_JSON_VALUE})
Expecting XML response and want to understand if there is any change in default configuration
Read more here: Source link
