何时使用弹簧网流过弹簧mvc

Vic*_*tor 13 spring-mvc spring-webflow

可以公平地说,使用Spring Webflow而不是Spring MVC最重要的理由是:使用Spring MVC,工作流的不同阶段需要在代码中.即如果第1阶段成功结束,在Controller中我们需要转发到阶段2的jsp,依此类推.在SPring MVC中,我们无法在xml文件中执行此操作.

但是在Spring webflow中,我们可以在不接触代码的情况下在xml文件中配置流.

这是错误还是过度简化?我查看了http://forum.springsource.org/showthread.php?16393-Difference-between-Spring-MVC-Web-Framework-and-Web-Flow,并试图对解释进行总结.

Vin*_*dha 10

如果您的应用程序具有复杂的Flow页面,则需要将事件定义为有限状态machin Webflow.在您购买Insurence,Flight Tickets的网站上使用webflow是合理的.

否则使用像Struts这样的普通MVC框架,webflow的学习曲线可能比其他MVC框架更难.

我会说下面提到的点是完全合理的.

The main point: webflow is a powerful controller. That's it. Use it when you need its power. use plain old controllers where you don't.