Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/347.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 验证程序存在Spring WebFlow配置问题_Java_Spring_Configuration_Spring Mvc_Spring Webflow - Fatal编程技术网

Java 验证程序存在Spring WebFlow配置问题

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

我第一次使用webflow,我正在尝试设置JSR-303bean验证。根据文件:

我需要向我的flow builder服务添加一个验证器

执行此操作后,我的源代码中出现以下错误:

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

任何帮助都将不胜感激


谢谢

我自己找到了答案

确保使用

在声明中

我使用的手册和电子书显示

希望这能帮助别人