Adding extra methods to a JAXB class generated from schema

后端 未结 2 1203
无人共我
无人共我 2021-01-12 03:58

Here\'s a trivial excerpt from my XSD file




        
2条回答
  •  爱一瞬间的悲伤
    2021-01-12 04:48

    You could try to update the property name you're seeing in the linked doc. try this instead:

    com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.FACTORY
    

    or

    "com.sun.xml.internal.bind.ObjectFactory"
    

    I'd guess that will get you past the PropertyException I figure you're seeing. The most thorough answer here, suggests this is not guaranteed to work, but worth trying since you've come this far. Source code, as far as I looked (not far) appears to support this property.

提交回复
热议问题