首页 > 代码库 > 解决Problem with writing the data, class java.util.ArrayList, ContentType: application/xml

解决Problem with writing the data, class java.util.ArrayList, ContentType: application/xml

今天,在使用cxf读取内网数据库的数据时,报以下一个错误

Problem with writing the data, class java.util.ArrayList,  ContentType: application/xml

以上错误提示我们,在写入数据时有错误,最后经检查发现在实体类前少加了一个注解

@XmlRootElement(name="具体使用的类名")

解决Problem with writing the data, class java.util.ArrayList, ContentType: application/xml