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

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决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的主要内容,如果未能解决你的问题,请参考以下文章