diff options
-rw-r--r-- | spring-velocity-support/src/main/java/org/apache/velocity/spring/VelocityEngineFactory.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spring-velocity-support/src/main/java/org/apache/velocity/spring/VelocityEngineFactory.java b/spring-velocity-support/src/main/java/org/apache/velocity/spring/VelocityEngineFactory.java index e2ecda6f..b1c062da 100644 --- a/spring-velocity-support/src/main/java/org/apache/velocity/spring/VelocityEngineFactory.java +++ b/spring-velocity-support/src/main/java/org/apache/velocity/spring/VelocityEngineFactory.java @@ -276,7 +276,7 @@ public class VelocityEngineFactory { resolvedPath.append(','); } } - velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER, "file"); + velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADERS, "file"); velocityEngine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_CACHE, "true"); velocityEngine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_PATH, resolvedPath.toString()); } @@ -308,7 +308,7 @@ public class VelocityEngineFactory { */ protected void initSpringResourceLoader(VelocityEngine velocityEngine, String resourceLoaderPath) { velocityEngine.setProperty( - RuntimeConstants.RESOURCE_LOADER, SpringResourceLoader.NAME); + RuntimeConstants.RESOURCE_LOADERS, SpringResourceLoader.NAME); velocityEngine.setProperty( SpringResourceLoader.SPRING_RESOURCE_LOADER_CLASS, SpringResourceLoader.class.getName()); velocityEngine.setProperty( |