hel*_*one 5 java jaxb marshalling jaxb2
我在编组时遇到错误。我从模式生成了 xml。
[javax.xml.bind.MarshalException
- with linked exception:
[com.sun.istack.internal.SAXException2: class org.com.AccountsComplexType nor any of its super class is known to this context.
Run Code Online (Sandbox Code Playgroud)
经过一番研究,有人说“尝试添加@XmlSeeAlso(...class)”,但问题是 AccountsComplexType 类不是 XmlRootElement。
知道我做错了什么吗?
| 归档时间: |
|
| 查看次数: |
10387 次 |
| 最近记录: |