eureka服务返回的数据是xml格式
记一次奇怪的返回数据,返回的数据变成了xml格式This XML file does not appear to have any style information associated with it. The document tree is shown below.<Order><id>1</id><name>用户订单</name>
·
记一次奇怪的返回数据,返回的数据变成了xml格式
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Order>
<id>1</id>
<name>用户订单</name>
<productId>2</productId>
<productList>
<productList>
<id>1</id>
<name>手机</name>
<orderId>1</orderId>
</productList>
<productList>
<id>2</id>
<name>电脑</name>
<orderId>1</orderId>
</productList>
</productList>
</Order>
我一看,依赖引入错误了,引入的eureka的server的依赖,导致返回数据变成了xml格式
解决办法:引入eureka的client依赖
更多推荐
已为社区贡献32条内容
所有评论(0)