Fix a typo in ResponseEntity documentation

Closes gh-28647
This commit is contained in:
Sébastien Deleuze 2022-06-17 12:15:22 +02:00
parent bdf91ac435
commit f1c00dd8a6
2 changed files with 2 additions and 2 deletions

View File

@ -2975,7 +2975,7 @@ configure or customize message writing.
public ResponseEntity<String> handle() {
String body = ... ;
String etag = ... ;
return ResponseEntity.ok().eTag(etag).build(body);
return ResponseEntity.ok().eTag(etag).body(body);
}
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]

View File

@ -3386,7 +3386,7 @@ See <<mvc-ann-jackson>> for details.
public ResponseEntity<String> handle() {
String body = ... ;
String etag = ... ;
return ResponseEntity.ok().eTag(etag).build(body);
return ResponseEntity.ok().eTag(etag).body(body);
}
----
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]