xml 생성 설정 수정

master
mjkhan21 12 months ago
parent 80453ca7ba
commit 0aa740f9f8

@ -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");

Loading…
Cancel
Save