我正在尝试学习 Spring MVC 2.0 和 Spring Web Flow 1.0。
我收到以下错误(可能是当调度程序委托请求流时):
配置问题:Cannot locate BeanDefinitionParser for element [executor]
我在应用程序的构建路径中使用 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>