@Responsebody String を使用して JSON を送信しています。私のコードの一部は以下のとおりです。(すべて開いて申し訳ありません)
@RequestMapping(value = "/getSomeList", method = RequestMethod.GET ,
headers="Accept=application/json", produces = "text/plain;charset=UTF-8")
public @ResponseBody String getThumbList(
@RequestParam("con_id") String con_id) throws Exception{
return json;
}
そして実際に Json を送信します。しかし、私のクライアントは Bson タイプを要求しています。グローバル形式を編集せずに Json を Bson に変更するにはどうすればよいですか (私の json は実際には単なる文字列であり、Spring は bson に応答できないと聞きました。そうですか?)。