|
|
@@ -59,17 +59,10 @@ public class FileClientImpl implements FileClient {
|
|
|
|
|
|
};
|
|
|
form.add("file", arrayResource);
|
|
|
-
|
|
|
HttpEntity<MultiValueMap<String, Object>> requestEntity = new HttpEntity<MultiValueMap<String, Object>>(form, headers);
|
|
|
ResponseEntity<JSONObject> responseEntity = null;
|
|
|
try {
|
|
|
- logger.info("------------------");
|
|
|
- logger.info(sysConf.getUploadFileUrl() + FileClientConstant.FILE_UPLOAD);
|
|
|
responseEntity = restTemplate.postForEntity(sysConf.getUploadFileUrl() + FileClientConstant.FILE_UPLOAD, requestEntity, JSONObject.class);
|
|
|
- logger.info(responseEntity);
|
|
|
- logger.info(responseEntity.getBody());
|
|
|
- logger.info(responseEntity.getBody().getString("patch"));
|
|
|
- logger.info("------------------");
|
|
|
}catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|