第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

RestTemplate 消耗 Json 字符串

RestTemplate 消耗 Json 字符串

catspeake 2021-06-10 14:59:40
我正在嘗試application/json使用 Spring RestTemplate返回一個帶有 content-type 的 json String 的服務(wù)。響應(yīng)如下所示:============================response begin==========================================response: 200 OKHeaders    Content-Length  : 108    Content-Type    : application/json; charset=utf-8Response Body : "a string with double quotes, JSON valid"=======================response end=================================================現(xiàn)在,當(dāng)我使用:String result = template.postForObject("http://...", request, String.class)結(jié)果總是包含"\"a string with double quotes, Json valid\"",而我想接收它轉(zhuǎn)義,"a string with double quotes, Json valid"。我也想收到這個答案而不必解析它。對我來說,這似乎是一個微不足道的問題,但我還沒有在網(wǎng)上找到任何 SO 問題或其他資源。
查看完整描述

2 回答

  • 2 回答
  • 0 關(guān)注
  • 179 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號