我编写了一个小型Spring控制器,它接受多部分文件作为参数 public String test(@RequestParam("test":700) ~[spring-web-4.3.6.RELEASE.jar:4.3.6.RELEASE]
at org.springframework.web.client.RestTemplate.doExecute(RestTemplate
我想向某个外部API发出一个多部分请求(使用Spring Boot创建),但得到的都是Required request part 'file' is not present。MultiValueMap<String, Object>> requestEntity
RestTemplaterestTemplate = new Res
我正在使用Spring 3和RestTemplate。基本上,我有两个应用程序,其中一个必须将值发布到另一个应用程序。通过rest模板。当post的值是String时,它的工作是完美的,但是当我不得不发布混合和复杂的参数(如MultipartFiles)时,我会得到一个转换器异常。(RestTemplate.java:436)
at org.springframework.web.client.RestTemplate.execute(RestTemplate<