Spring WebFlow - 剩余映射问题

发布于 2024-11-06 02:17:36 字数 2020 浏览 2 评论 0原文

我在 Spring Webflow 2.3.0 中遇到映射问题,

当我想执行时出现错误:

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

http://localhost:8090/myWebApp/verify http://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:找不到流定义“其他”

I have problem with mapping in Spring Webflow 2.3.0

I got error when I want to excute:

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

http://localhost:8090/myWebApp/verify or
http://localhost:8090/myWebApp/register etc works

Can anybody help?

<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>

I got error in runtime:

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

org.springframework.webflow.definition.registry.NoSuchFlowDefinitionException: No flow definition 'other' found

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

物价感观 2024-11-13 02:17:36

Webflow 并不平静 - 您正在寻找的东西是不可能的。例如,请参阅此主题
考虑使用 spring mvc 代替,它有很多 更多构建宁静应用程序的机会

Webflow is not restful - what you're looking for is impossible. See, for example, this topic
Consider using spring mvc instead, it has much more opportunities for building restful applications

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文