使用 Eclipse 的 Spring Web Flow 教程

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/6373267/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-08 04:33:11  来源:igfitidea点击:

Tutorial for Spring Web Flow using Eclipse

eclipsespringspring-mvc

提问by Andy

I want to develop a simple web application using Spring Web Flow. The project is essentially to getting hands-on on Spring Web Flow development. Can anyone guide me to a good tutorial for this development on Eclipse. I specifically need to do this on Eclipse so will be helpful to get tutorials pertaining to use of Eclipse.

我想使用 Spring Web Flow 开发一个简单的 Web 应用程序。该项目本质上是动手进行 Spring Web Flow 开发。任何人都可以指导我在 Eclipse 上进行此开发的良好教程。我特别需要在 Eclipse 上执行此操作,因此将有助于获取有关 Eclipse 使用的教程。

回答by Arthur Vin

I've posted new video tutorial for beginners on how to setup Web Flow project Step by Step. Check it out on Youtube:

我已经为初学者发布了关于如何逐步设置 Web Flow 项目的新视频教程。在 Youtube 上查看:

http://www.youtube.com/watch?v=RnTTbu_6WH8

http://www.youtube.com/watch?v=RnTTbu_6WH8

Description: This part10 shows STEP by STEP Spring Webflow project setup + Hibernate + JSF + Spring project configuration in Eclipse STS + create test Flow and JSF view with Facelets and finally run test example on Tomcat server. Initial Maven project creation and adding libraries were covered in part 9.

描述:这部分10展示了STEP by STEP Spring Webflow项目设置+Hibernate+JSF+Eclipse STS中的Spring项目配置+使用Facelets创建测试流程和JSF视图,最后在Tomcat服务器上运行测试示例。第 9 部分介绍了最初的 Maven 项目创建和添加库。

Source code (revision 4): http://code.google.com/p/jee-tutorial-youtube/source/browse/

源代码(修订版 4):http: //code.google.com/p/jee-tutorial-youtube/source/browse/

回答by Snehal Masne

The example demonstrates using Web Flow to build a shopping cart wizard with a shipping rate subflow, decision states, service and data access Spring POJO beans, Spring 2.0 form tags, and a Web Flow FormAction bean for data binding, validation, and error reporting.

该示例演示了使用 Web Flow 构建购物车向导,其中包含运费子流、决策状态、服务和数据访问 Spring POJO bean、Spring 2.0 表单标签和用于数据绑定、验证和错误报告的 Web Flow FormAction bean。

Use this link for the example : http://static.springsource.org/spring-webflow/docs/1.0.x/reference/practical.html

使用此链接作为示例:http: //static.springsource.org/spring-webflow/docs/1.0.x/reference/practical.html

The example breaks down its Spring application configuration into a number of files organized according to purpose. Although the example itself uses a small number of beans you may consider organizing a real-world application (with many more beans) according to similar principles.

该示例将其 Spring 应用程序配置分解为多个按用途组织的文件。尽管示例本身使用了少量 bean,但您可以考虑根据类似原则组织一个实际应用程序(具有更多 bean)。