We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bce850a commit b3eb1a2Copy full SHA for b3eb1a2
spring-web/src/main/java/org/springframework/http/HttpEntity.java
@@ -28,7 +28,7 @@
28
* <pre class="code">
29
* HttpHeaders headers = new HttpHeaders();
30
* headers.setContentType(MediaType.TEXT_PLAIN);
31
- * HttpEntity<String> entity = new HttpEntity<String>(helloWorld, headers);
+ * HttpEntity<String> entity = new HttpEntity<String>("helloWorld", headers);
32
* URI location = template.postForLocation("https://example.com", entity);
33
* </pre>
34
* or
0 commit comments