SpringBoot接收前端传过来的file再使用RestTemplate向另一个接口请求multipart file
@RequestMapping("/upload")
public void postData(@RequestParam("file") MultipartFile file) throws IOException {
String url = "https://localhost:8080/upload";
MultiValueMap<String, Object> bodyMap = new LinkedMultiValueMap<>();
转载
2021-04-26 15:09:06 ·
643 阅读 ·
0 评论