问题描述
Spring zuul代理将额外的json响应与服务响应json一起添加
下面是zuul配置
zuul:
sensitiveHeaders:
routes:
api-gateway:
url: http://localhost:8099
abc-management:
url: http://localhost:8098
下面是响应json
{
"status": "P200","message": "Orders fetched successfully","timeStamp": "2020-09-30T16:01:42.116275Z","data": {
"orders": [
{
"order_id": "11312553751504","status_reason": null
}
]
},"requestId": 0
}{
"timestamp": "2020-09-30T16:01:42.122+0000","status": 200,"error": "OK","message": "","path": "/api-gateway/orders"
}
额外的json
{
"timestamp": "2020-09-30T16:01:42.122+0000","path": "/api-gateway/orders"
}
由zuul代理附加,这是错误还是配置错误
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)