在我们的应用程序中,我们正在对数据库进行REST调用并传递大量的JSON数据。我们想压缩JSON以加快数据传输过程。
LinkedHashMap<String, Object> mapObject;
mapObject = objectMapper.readValue(JsonPayLoad.toString(), new TypeReference<LinkedHashMap<String, Object>>()
{});
ResponseEntity<Object> responseEntity =
restTemplate.postForEntity(executeTxUrl, mapObject, Object.class, txId);
我认为只需设置一些http标头即可实现。我认为这需要明确压缩JSON。
另外,我认为它可以通过应用程序的http日志进行测试吗?
如果有人做了类似的事情,请告诉我。
此致 拉胡