diff --git a/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionResourceFactory.java b/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionResourceFactory.java index 5b60c694..d1f0cf94 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionResourceFactory.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/config/FlowDefinitionResourceFactory.java @@ -107,6 +107,11 @@ public class FlowDefinitionResourceFactory { resource = resourceLoader.getResource(path); } else { try { + String basePath = this.basePath; + if (!basePath.endsWith("/")) { + // the basePath must end with a slash to create a relative resource + basePath = basePath + "/"; + } resource = resourceLoader.getResource(basePath).createRelative(path); } catch (IOException e) { throw new IllegalStateException("The base path cannot be resolved from '" + basePath + "': "