[解决]cxf报错 ElementNSImpl cannot be cast to XXX

来源:互联网 发布:java在线开发平台 编辑:程序博客网 时间:2024/05/21 05:20

实体的父类上需要添加@XmlRootElement

如果实体或父类中有泛型, 需要加上@XmlSeeAlso(XXX.class)

0 0