Merge branch '5.2.x'
This commit is contained in:
commit
6d164b1445
|
|
@ -320,7 +320,7 @@ To send multipart data, you need to provide a `MultiValueMap<String, Object>` wh
|
||||||
may be an `Object` for part content, a `Resource` for a file part, or an `HttpEntity` for
|
may be an `Object` for part content, a `Resource` for a file part, or an `HttpEntity` for
|
||||||
part content with headers. For example:
|
part content with headers. For example:
|
||||||
|
|
||||||
[source,java,intent=0]
|
[source,java,indent=0]
|
||||||
[subs="verbatim,quotes"]
|
[subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
MultiValueMap<String, Object> parts = new LinkedMultiValueMap<>();
|
MultiValueMap<String, Object> parts = new LinkedMultiValueMap<>();
|
||||||
|
|
@ -341,7 +341,7 @@ explicitly provide the `MediaType` with an `HttpEntity` wrapper.
|
||||||
|
|
||||||
Once the `MultiValueMap` is ready, you can pass it to the `RestTemplate`, as show below:
|
Once the `MultiValueMap` is ready, you can pass it to the `RestTemplate`, as show below:
|
||||||
|
|
||||||
[source,java,intent=0]
|
[source,java,indent=0]
|
||||||
[subs="verbatim,quotes"]
|
[subs="verbatim,quotes"]
|
||||||
----
|
----
|
||||||
MultiValueMap<String, Object> parts = ...;
|
MultiValueMap<String, Object> parts = ...;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue