From b695f63a0b2c4edf2d71123a0c8c12adb5193280 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) git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2813 50f2f4bb-b051-0410-bef5-90022cba6387 --- 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 903a9dd1ac1..97e5025160a 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