1. 程式人生 > >解決Problem with writing the data, class java.util.ArrayList, ContentType: application/xml

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

writing 數據庫

今天,在使用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