From f7952fccc8257319bca85907d4cc54aabcfa4e39 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Thu, 14 Jan 2010 17:01:40 +0000 Subject: [PATCH] fixed sample code (SPR-6687) --- spring-framework-reference/src/resources.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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