Spring WebFlow - 剩余映射问题
我在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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