Minor fixes in RestTemplate to RestClient migration guide

See gh-23269
This commit is contained in:
Arjen Poutsma
2023-10-05 10:53:31 +02:00
parent 95139fca76
commit 1766d7598c

View File

@@ -564,7 +564,7 @@ The following table shows `RestClient` equivalents for `RestTemplate` methods.
It can be used to migrate from the latter to the former.
.RestClient equivalents for RestTemplate methods
[cols="1,1"]
[cols="1,1", options="header"]
|===
| `RestTemplate` method | `RestClient` equivalent
@@ -837,7 +837,7 @@ It can be used to migrate from the latter to the former.
.headers(Consumer<HttpHeaders>)
.body(Object)
.retrieve()
.toEntity(Class)` footnote:request-entity[`RequestEntity` method, URI, headers and body have to be supplied to the `RestClient` via `method(HttpMethod)`, `uri(URI)`, headers(Consumer<HttpHeaders>)` and `body(Object)`.]
.toEntity(Class)` footnote:request-entity[`RequestEntity` method, URI, headers and body have to be supplied to the `RestClient` via `method(HttpMethod)`, `uri(URI)`, `headers(Consumer<HttpHeaders>)` and `body(Object)`.]
| `exchange(RequestEntity, ParameterizedTypeReference)`
| `method(HttpMethod)