@XmlRegistry - how does it work?

后端 未结 2 1386
情书的邮戳
情书的邮戳 2021-01-31 06:23

I have found some examples of JAXB2 @XmlRegistry over the internet but no good in-depth tutorials that talk about the concept of using @XmlRegistry wit

2条回答
  •  眼角桃花
    2021-01-31 06:55

    You have to take a List object of Address. In that object, you will have to add the object which contains data like addressline1. addressline2 and so on.

     i.e.
     List addrObjList = new List();
     addrObjList.add(object); // Bind an object containing data and add one by one 
    

提交回复
热议问题