Polishing
This commit is contained in:
@@ -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);
|
||||
----
|
||||
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"]
|
||||
----
|
||||
|
||||
@@ -995,7 +995,6 @@ broadcasting to other connected clients):
|
||||
config.setApplicationDestinationPrefixes("/app");
|
||||
config.enableSimpleBroker("/topic", "/queue");
|
||||
}
|
||||
|
||||
}
|
||||
----
|
||||
|
||||
|
||||
Reference in New Issue
Block a user