diff --git a/spring-web/src/main/java/org/springframework/http/RequestEntity.java b/spring-web/src/main/java/org/springframework/http/RequestEntity.java index 3ddb55d6346..e7e4b5e7631 100644 --- a/spring-web/src/main/java/org/springframework/http/RequestEntity.java +++ b/spring-web/src/main/java/org/springframework/http/RequestEntity.java @@ -33,14 +33,14 @@ import org.springframework.util.ObjectUtils; * {@link org.springframework.web.client.RestTemplate#exchange(RequestEntity, Class) exchange()}: *
* MyRequest body = ...
- * RequestEntity<MyRequest> request = RequestEntity.post(new URI("http://example.com/bar").accept(MediaType.APPLICATION_JSON).body(body);
+ * RequestEntity<MyRequest> request = RequestEntity.post(new URI("http://example.com/bar")).accept(MediaType.APPLICATION_JSON).body(body);
* ResponseEntity<MyResponse> response = template.exchange(request, MyResponse.class);
*
*
* If you would like to provide a URI template with variables, consider using * {@link org.springframework.web.util.UriTemplate}: *
- * URI uri = new UriTemplate("http://example.com/{foo}"").expand("bar");
+ * URI uri = new UriTemplate("http://example.com/{foo}").expand("bar");
* RequestEntity<MyRequest> request = RequestEntity.post(uri).accept(MediaType.APPLICATION_JSON).body(body);
*
*
diff --git a/src/asciidoc/appendix.adoc b/src/asciidoc/appendix.adoc
index ae0d0e3739a..1c131ac48e5 100644
--- a/src/asciidoc/appendix.adoc
+++ b/src/asciidoc/appendix.adoc
@@ -4506,7 +4506,7 @@ escaping. Modeled after the JSTL c:url tag with backwards compatibility in mind.
|===
| Attribute| Required?| Runtime Expression?| Description
-| url
+| value
| true
| true
| The URL to build. This value can include template {placeholders} that are replaced
diff --git a/src/asciidoc/index.adoc b/src/asciidoc/index.adoc
index 24e9e40cdb9..edde31260a2 100644
--- a/src/asciidoc/index.adoc
+++ b/src/asciidoc/index.adoc
@@ -9130,13 +9130,14 @@ The following table lists features provided by the `BeanFactory` and
| Yes
|===
-To explicitly register a bean post-processor with a `BeanFactory` implementation, you
-must write code like this:
+To explicitly register a bean post-processor with a `BeanFactory` implementation,
+you need to write code like this:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
- ConfigurableBeanFactory factory = new XmlBeanFactory(...);
+ DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
+ // populate the factory with bean definitions
// now register any needed BeanPostProcessor instances
MyBeanPostProcessor postProcessor = new MyBeanPostProcessor();
@@ -9151,7 +9152,9 @@ implementation, you must write code like this:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
- XmlBeanFactory factory = new XmlBeanFactory(new FileSystemResource("beans.xml"));
+ DefaultListableBeanFactory factory = new DefaultListableBeanFactory();
+ XmlBeanDefinitionReader reader = new XmlBeanDefinitionReader(factory);
+ reader.loadBeanDefinitions(new FileSystemResource("beans.xml"));
// bring in some property values from a Properties file
PropertyPlaceholderConfigurer cfg = new PropertyPlaceholderConfigurer();
@@ -30677,7 +30680,7 @@ also <