お察しください
pomに下記を追加
<dependency> <groupId> com.fasterxml.jackson.dataformat </groupId> <artifactId> jackson-dataformat-xml </artifactId> <version> 2.9.8 </version> </dependency> 詳細な使い方 @Builder @JacksonXmlRootElement ( localName = "top_element" ) public class TestBean implements Serializable { // isAttribute = trueを付与すると属性になる @JacksonXmlProperty ( localName = "id" , isAttribute = true ) private String topElement ; @JacksonXmlProperty ( localName = "test_field" ) private String testField ; // ネストしたBeanも書ける @JacksonXmlProperty ( localName = "test_inner_bean" ) private TestInnerBean testInnerBean ; // Beanのリストをフィールドに持てる @JacksonXmlElementWrapper ( localName = "dtls" ) @JacksonXmlProperty ( localName = "dtl" ) private List < DtlsInnerDto > dtlsInnerDto ; public class TestInnerBean implements Serializable { @JacksonXmlProperty ( localName = "inner_field_one" ) private String innerFieldOne ; @JacksonXmlProperty ( localName = "inner_field_two" ) private String innerFieldTwo ; @Builder public class DtlsInnerDto implements Serializeble { @JacksonXmlProperty ( localName = "dtl_item" ) private String dtlItem ;