Skip to content

Commit 1766d75

Browse files
committed
Minor fixes in RestTemplate to RestClient migration guide
See gh-23269
1 parent 95139fc commit 1766d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

framework-docs/modules/ROOT/pages/integration/rest-clients.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ The following table shows `RestClient` equivalents for `RestTemplate` methods.
564564
It can be used to migrate from the latter to the former.
565565

566566
.RestClient equivalents for RestTemplate methods
567-
[cols="1,1"]
567+
[cols="1,1", options="header"]
568568
|===
569569
| `RestTemplate` method | `RestClient` equivalent
570570

@@ -837,7 +837,7 @@ It can be used to migrate from the latter to the former.
837837
.headers(Consumer<HttpHeaders>)
838838
.body(Object)
839839
.retrieve()
840-
.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)`.]
840+
.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)`.]
841841

842842
| `exchange(RequestEntity, ParameterizedTypeReference)`
843843
| `method(HttpMethod)

0 commit comments

Comments
 (0)