服务器返回错误error on line 1 at column 1: Document is empty

发布于 2012-05-06 | 更新于 2020-09-20

This page contains the following errors: error on line 1 at column 1: Document is empty Below is a rendering of the page up to the first error.

这种情况是服务器处理返回了,但是返回的格式有问题,这里提示Document为空,后台是返回字符串: success

而service方法中:

@Produces(“text/xml”)

改为:

@Produces(“application/json”)

即可。

本文作者: arthinking

本文链接: https://www.itzhai.comthe-server-returned-an-error-error-on-line-1-at-column-1-the-document-is-empty.html

版权声明: 版权归作者所有,未经许可不得转载,侵权必究!联系作者请加公众号。

×
IT宅

关注公众号及时获取网站内容更新。

请帅旋喝一杯咖啡

咖啡=电量,给帅旋充杯咖啡,他会满电写代码!

IT宅

关注公众号及时获取网站内容更新。