Polishing

This commit is contained in:
Juergen Hoeller
2017-11-21 16:34:08 +01:00
parent 9f1d8517ba
commit 0cc644f61f
9 changed files with 41 additions and 31 deletions

View File

@@ -1685,7 +1685,7 @@ The preceding example is equivalent to the following Java code:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
exampleBean.setEmail("")
exampleBean.setEmail("");
----
The `<null/>` element handles `null` values. For example:
@@ -1705,7 +1705,7 @@ The above configuration is equivalent to the following Java code:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
exampleBean.setEmail(null)
exampleBean.setEmail(null);
----

View File

@@ -3147,7 +3147,7 @@ framework.
c:loginAction-ref="loginAction" />
<bean id="loginAction" class="com.example.LoginAction"
c:username="\#{request.getParameter('user')}"
c:username="#{request.getParameter('user')}"
c:password="#{request.getParameter('pswd')}"
scope="request">
<aop:scoped-proxy />
@@ -3602,8 +3602,8 @@ scripts against a `DataSource`.
public void databaseTest {
ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
populator.addScripts(
new ClassPathResource("test-schema.sql"),
new ClassPathResource("test-data.sql"));
new ClassPathResource("test-schema.sql"),
new ClassPathResource("test-data.sql"));
populator.setSeparator("@@");
populator.execute(this.dataSource);
// execute code that uses the test schema and data

View File

@@ -3818,6 +3818,7 @@ accepted as an argument in several Spring Web MVC APIs.
----
[[mvc-caching-static-resources]]
=== Static resources
@@ -3830,7 +3831,6 @@ metadata, but also `'Cache-Control'` headers if properly configured.
You can set the `cachePeriod` attribute on a `ResourceHttpRequestHandler` or use
a `CacheControl` instance, which supports more specific directives:
[source,java,indent=0]
[subs="verbatim"]
----

View File

@@ -995,7 +995,6 @@ broadcasting to other connected clients):
config.setApplicationDestinationPrefixes("/app");
config.enableSimpleBroker("/topic", "/queue");
}
}
----