From 0aa740f9f8906566ca8b0f062f5f2b3cf21e0fe4 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Tue, 28 Nov 2023 13:52:34 +0900 Subject: [PATCH] =?UTF-8?q?xml=20=EC=83=9D=EC=84=B1=20=EC=84=A4=EC=A0=95?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/foundation/boot/MvcConfig.java | 1 + 1 file changed, 1 insertion(+) 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");