热门

最新

红包

立Flag

投票

同城

我的

发布
weixin_40983332
一眼一万年
3 年前
trueweixin_40983332

MultiValueMap map2 = new LinkedMultiValueMap();
String listJson2 = JSON.toJSONString(gongDanCreateDto);
map2.add("cbp", listJson2);
//添加多个文件照片
for (int i = 0; i < imageList.size(); i++) {
FileSystemResource fileSystemResource = new FileSystemResource(imageList.get(i));
if (!fileSystemResource.exists()) {
continue;
} else {
map2.add("files", fileSystemResource);
}
}

HttpEntity requestParams2 = new HttpEntity(map2, headers2);
ResponseEntity<String> response2 = restTemplate.postForEntity(url, requestParams2, String.class);

CSDN App 扫码分享
分享
评论
点赞
打赏
  • 复制链接
  • 举报
下一条:
好好学习,学了就去参加比赛,作为大学生没参加过数学建模比赛时很可惜的,把你们所学知识应用起来
立即登录