Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/305.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 SpringWebFlow';s_flowId已弃用_Java_Spring Mvc_Spring Webflow - Fatal编程技术网

Java SpringWebFlow';s_flowId已弃用

Java SpringWebFlow';s_flowId已弃用,java,spring-mvc,spring-webflow,Java,Spring Mvc,Spring Webflow,我被指派将一个spring-webflow-1.0项目迁移到spring-webflow-2.4。 我还被要求维护原始的_flowId标识,即/flows.htm?_flowId=booksearch 为了做到这一点,我将以下由spring加载的flow-definition.xml放在一起。它使用我在几个地方提到的WebFlow1FlowUrlHandler,允许您维护基于WebFlow1的url匹配,但以下url都找不到任何内容 booksearch-flow.xml和pensioncl

我被指派将一个spring-webflow-1.0项目迁移到spring-webflow-2.4。 我还被要求维护原始的_flowId标识,即/flows.htm?_flowId=booksearch

为了做到这一点,我将以下由spring加载的flow-definition.xml放在一起。它使用我在几个地方提到的WebFlow1FlowUrlHandler,允许您维护基于WebFlow1的url匹配,但以下url都找不到任何内容

booksearch-flow.xml和pensionclaims-flow.xml的定义位于webapps/flows中,但没有用

有人有什么想法吗

谢谢, 马克


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xmlns:flow="http://www.springframework.org/schema/webflow-config"
   xsi:schemaLocation="http://www.springframework.org/schema/webflow-config http://www.springframework.org/schema/webflow-config/spring-webflow-config-2.0.xsd http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">

<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerMapping">
    <property name="flowRegistry" ref="flowRegistry"/>
</bean>

<bean class="org.springframework.webflow.mvc.servlet.FlowHandlerAdapter">
    <property name="flowExecutor" ref="flowExecutor"/>
</bean>

<flow:flow-executor id="flowExecutor" flow-registry="flowRegistry"/>

<flow:flow-registry id="flowRegistry" flow-builder-services="flowBuilderServices">
    <flow:flow-location-pattern value="/flows/*-flow.xml"/>
</flow:flow-registry>

<flow:flow-builder-services id="flowBuilderServices" view-factory-creator="mvcViewFactoryCreator"
                            development="true"/>

<bean id="internalResourceViewResolver"
      class="org.springframework.web.servlet.view.InternalResourceViewResolver">
    <property name="prefix" value="/jsp/" />
    <property name="suffix" value=".jsp" />
</bean>

<bean id="mvcViewFactoryCreator" class="org.springframework.webflow.mvc.builder.MvcViewFactoryCreator">
    <property name="viewResolvers" ref="internalResourceViewResolver"/>
    <property name="useSpringBeanBinding" value="true"/>
</bean>

<bean name="/flows.html" class="org.springframework.webflow.mvc.servlet.FlowController">
    <property name="flowExecutor" ref="flowExecutor"/>
    <property name="flowUrlHandler">
        <bean class="org.springframework.webflow.context.servlet.WebFlow1FlowUrlHandler"/>
    </property>
</bean>