【发布时间】:2015-02-28 23:59:19
【问题描述】:
我正在尝试学习 Spring MVC 2.0 和 Spring Web Flow 1.0。
我收到以下错误(可能是当调度程序委托流请求时):
配置问题:找不到元素 [executor] 的 BeanDefinitionParser
我在应用程序的构建路径中使用 Spring 2.0 和 Web Flow 1.0 jar 文件。
下面是我的 Spring MVC 2.0 配置文件:
<bean name="/phonebook.htm"
class="org.springframework.webflow.executor.mvc.FlowController">
<property name="flowExecutor" ref="flowExecutor"/>
</bean>
<!-- Resolves flow view names to .jsp templates -->
<bean id="viewResolver"
class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="prefix" value="/WEB-INF/jsp/"/> <property name="suffix" value=".jsp">
</bean>
还有我的 Spring Web Flow 1.0 配置:
<flow:executor id="flowExecutor" registry-ref="flowRegistry"/>
<!-- Creates the registry of flow definitions for this application -->
<flow:registry id="flowRegistry"> <flow:location path="/WEB-INF/flows/**-flow.xml"/>
</flow:registry>
【问题讨论】:
-
首先,我们需要更多的信息,比如查看您的配置。此外,Spring 2.0 和 Webflow 1.0 都非常老了。如果您刚开始使用这些东西,那么您应该使用最新版本。
-
Spring 2.0 配置文件..
-
Spring webflow 1.0 配置文件。
标签: spring spring-mvc spring-webflow