We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We used spring boot v3.2.1 , create bean object to convert json to xml and
jackson-dataformat-xml v2.16.1 added as dependency
@bean public MappingJackson2XmlHttpMessageConverter converter(Jackson2ObjectMapperBuilder builder) { XmlMapper xmlMapper = builder.createXmlMapper(true).build(); xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true); xmlMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); return new MappingJackson2XmlHttpMessageConverter(xmlMapper); }
we are able to convert json to xml but we are missing encoding xml version []
The text was updated successfully, but these errors were encountered:
duplicate of #315
Sorry, something went wrong.
No branches or pull requests
We used spring boot v3.2.1 , create bean object to convert json to xml and
jackson-dataformat-xml v2.16.1 added as dependency
@bean
public MappingJackson2XmlHttpMessageConverter converter(Jackson2ObjectMapperBuilder builder) {
XmlMapper xmlMapper = builder.createXmlMapper(true).build();
xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true);
xmlMapper.setSerializationInclusion(JsonInclude.Include.NON_NULL);
return new MappingJackson2XmlHttpMessageConverter(xmlMapper);
}
we are able to convert json to xml but we are missing encoding xml version []
The text was updated successfully, but these errors were encountered: