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

分享一下我老师大神的人工智能教程!零基础,通俗易懂!http://blog.csdn.net/jiangjunshow

也欢迎大家转载本篇文章。分享知识,造福人民,实现我们中华民族伟大复兴!

                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")

即可。

-----------------

有时候返回的不对,

即,正常返回的过程中,有输出。

也会出现这样的情况

           

给我老师的人工智能教程打call!http://blog.csdn.net/jiangjunshow

这里写图片描述

猜你喜欢

转载自blog.csdn.net/ufryyfdf/article/details/83935112
今日推荐