Spring WebFlow - 休息映射的问题

时间:2011-05-11 09:57:46

标签: java spring-webflow

我在Spring Webflow 2.3.0中有映射问题

我想要执行时遇到错误:

http://localhost:8090/myWebApp/注册/其他

http://localhost:8090/myWebApp/verifyhttp://localhost:8090/myWebApp/register等工作

有人可以帮忙吗?

<bean class="org.springframework.web.servlet.handler.SimpleUrlHandlerMapping">
        <property name="order">
            <value>1</value>
        </property>
        <property name="mappings">
            <value>
                /register=flowController
                /verify=flowController
                /forgotPassword=flowController 
                /register/other=flowController     
            </value>
        </property>
        <property name="alwaysUseFullPath" value="true" />
    </bean>

...

<webflow:flow-registry id="flowRegistry"
        flow-builder-services="flowBuilderServices">
        <webflow:flow-location id="verify" path="/WEB-INF/flows/verify.xml"></webflow:flow-location>
        <webflow:flow-location id="register" path="/WEB-INF/flows/register.xml"></webflow:flow-location>
        <webflow:flow-location id="changeLang" path="/WEB-INF/flows/changeLang.xml"></webflow:flow-location>
        <webflow:flow-location id="forgotPassword" path="/WEB-INF/flows/forgotPassword.xml"></webflow:flow-location>
        <webflow:flow-location id="register/other" path="/WEB-INF/flows/other.xml"></webflow:flow-location>
    </webflow:flow-registry>

我在运行时遇到错误:

http://localhost:8090/myWebApp/register/other

org.springframework.webflow.definition.registry.NoSuchFlowDefinitionException:找不到流量定义“其他”

1 个答案:

答案 0 :(得分:2)

Webflow并不安宁 - 您正在寻找的是不可能的。例如,请参阅this topic 考虑使用spring mvc,它有much more个机会来构建restful应用程序