Fix a typo in ResponseEntity documentation
Closes gh-28647
This commit is contained in:
parent
bdf91ac435
commit
f1c00dd8a6
|
@ -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"]
|
||||
|
|
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue