diff --git a/spring-framework-reference/src/resources.xml b/spring-framework-reference/src/resources.xml
index 903a9dd1ac..97e5025160 100644
--- a/spring-framework-reference/src/resources.xml
+++ b/spring-framework-reference/src/resources.xml
@@ -264,7 +264,7 @@
of code was executed against a
ClassPathXmlApplicationContext instance:
- Resource template = ctx.getResource("some/resource/path/myTemplate.txt);
+ Resource template = ctx.getResource("some/resource/path/myTemplate.txt");
What would be returned would be a
ClassPathResource; if the same method was executed
@@ -281,15 +281,15 @@
application context type, by specifying the special
classpath: prefix:
- Resource template = ctx.getResource("classpath:some/resource/path/myTemplate.txt);
+ Resource template = ctx.getResource("classpath:some/resource/path/myTemplate.txt");
Similarly, one can force a UrlResource to be
used by specifying any of the standard java.net.URL
prefixes:
- Resource template = ctx.getResource("file:/some/resource/path/myTemplate.txt);
+ Resource template = ctx.getResource("file:/some/resource/path/myTemplate.txt");
- Resource template = ctx.getResource("http://myhost.com/resource/path/myTemplate.txt);
+ Resource template = ctx.getResource("http://myhost.com/resource/path/myTemplate.txt");
The following table summarizes the strategy for converting
Strings to