diff --git a/src/main/java/cokr/xit/foundation/boot/MvcConfig.java b/src/main/java/cokr/xit/foundation/boot/MvcConfig.java index 3182add..034026e 100644 --- a/src/main/java/cokr/xit/foundation/boot/MvcConfig.java +++ b/src/main/java/cokr/xit/foundation/boot/MvcConfig.java @@ -111,6 +111,7 @@ public class MvcConfig implements WebMvcConfigurer { public MappingJackson2XmlView xmlView() { XmlMapper xmlMapper = new XmlMapper(); xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_DECLARATION, true); + xmlMapper.configure(ToXmlGenerator.Feature.WRITE_XML_1_1, true); MappingJackson2XmlView bean = new MappingJackson2XmlView(); bean.setContentType("application/xml; charset=UTF-8");