I can't understand why this JAXB IllegalAnnotationException is thrown

后端 未结 12 1767
渐次进展
渐次进展 2020-12-13 02:03

This is my XML file:


    
    
    
                   


        
12条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 02:41

    One of the following may cause the exception:

    1. Add an empty public constructor to your Fields class, JAXB uses reflection to load your classes, that's why the exception is thrown.
    2. Add separate getter and setter for your list.

提交回复
热议问题