什么时候在Spring MVC上使用Spring WebFlow是有意义的? [英] When does it make sense to use Spring WebFlow on top of Spring MVC?

查看:326
本文介绍了什么时候在Spring MVC上使用Spring WebFlow是有意义的?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Spring MVC已经成为构建企业Web应用程序的一个非常流行的框架。任何复杂的Web应用程序都有某些需要编码的流程,包括一些条件流程(即,如果信用卡信息正确则显示订单处理,或者如果未正确输入某些内容则验证错误)。

Spring MVC has become a very popular framework for building enterprise web applications. Any complex web application has certain flows that need to be coded, including some conditional flows (i.e., show order processed if the credit card information was correct, or validation errors if something was not entered correctly).

什么时候在Spring MVC上使用Spring WebFlow是有意义的?关于使用Spring WebFlow的决策过程应该是什么?

When does it make sense to use Spring WebFlow on top of Spring MVC? What should be the decision making process regarding using Spring WebFlow?

推荐答案

如果您的Web应用程序有一些应用程序进程。例如,如果您有某种注册过程,一个按钮可以转到一个页面而另一个按钮可以转到另一个页面。 Spring Webflow可以很好地处理转换到不同的进程集。

If you have a web application that has some application process. For example, if you have some kind of sign up process that one button can go to one page while another can go to a different page. Spring Webflow can handle transitioning to different sets of processes very well.

基本上,如果应用程序的某些部分是链接的,并且页面在执行过程中相互依赖SWF很好用。

Basically, if some part of your application is linked and pages depend on each other during the course of an execution SWF is good to use.

这篇关于什么时候在Spring MVC上使用Spring WebFlow是有意义的?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆