Java 验证程序存在Spring WebFlow配置问题
我第一次使用webflow,我正在尝试设置JSR-303bean验证。根据文件: 我需要向我的flow builder服务添加一个验证器 执行此操作后,我的源代码中出现以下错误:Java 验证程序存在Spring WebFlow配置问题,java,spring,configuration,spring-mvc,spring-webflow,Java,Spring,Configuration,Spring Mvc,Spring Webflow,我第一次使用webflow,我正在尝试设置JSR-303bean验证。根据文件: 我需要向我的flow builder服务添加一个验证器 执行此操作后,我的源代码中出现以下错误: cvc复杂类型。3.2.2:属性“validator”不允许出现在元素“webflow:flow builder services”中。 当我运行应用程序时,出现以下错误: org.springframework.beans.factory.parsing.BeanDefinitionParsingExcep
cvc复杂类型。3.2.2:属性“validator”不允许出现在元素“webflow:flow builder services”中。
当我运行应用程序时,出现以下错误:
org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean definitions from relative location [webflowContext.xml]
Offending resource: class path resource [spring-servlet.xml]; nested exception is org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 18 in XML document from class path resource [webflowContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException: cvc-complex-type.3.2.2: Attribute 'validator' is not allowed to appear in element 'webflow:flow-builder-services'.
看起来流程配置设置正确,我可以从欢迎页面导航到流程中的第二个页面
我使用的是Spring-3.0.5,Spring-Webflow-2.3.0
任何帮助都将不胜感激
谢谢我自己找到了答案 确保使用 在声明中 我使用的手册和电子书显示 希望这能帮助别人