我第一次使用webflow,并且正在尝试设置JSR-303 Bean验证。根据文档:Validator的Spring WebFlow配置问题
我需要一个验证添加到我流建设者服务。
我这样做,我碰到下面的错误在我的源:
cvc-complex-type.3.2.2: Attribute 'validator' is not allowed to appear in element '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'.
看来流动配置是设置正确我可以从我的欢迎页面导航到我的流程中的第二页就好了。
我使用弹簧3.0.5,弹簧的Webflow-2.3.0
任何帮助将非常感激。
谢谢