How to customise an XML export using JAXB

后端 未结 1 1788
感情败类
感情败类 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条回答
  •  猫巷女王i
    2021-01-23 13:01

    You can do the following:

    @XmlElementWrapper(name="addresses")
    @XmlElement(name="address")
    public List
    getAddressesList() {

    0 讨论(0)
提交回复
热议问题