How to customise an XML export using JAXB

后端 未结 1 1785
感情败类
感情败类 2021-01-23 12:07

For testing purposes, I used used JAXB to generate an XML from an Object. This work fine. The code is below.

    package com.mns.mnsutilities.jaxb.model;

    im         


        
相关标签:
1条回答
  • 2021-01-23 13:01

    You can do the following:

    @XmlElementWrapper(name="addresses")
    @XmlElement(name="address")
    public List<Address> getAddressesList() {
    
    0 讨论(0)
提交回复
热议问题