Spring Web Flow 2.0 is an extension of Spring Web MVC, which, if roughly, is equivalent to a special controller in spring Web MVC, which can be controller through XML files, so you need to configure Spring Web MVC before using Spring Web Flow 2.0, as follows:
Create a directory structure for a WEB application
Import a related class library under/web-inf/lib
Declare dispatcherservlet in the WEB application Deployment Descriptor file Web.xml and specify the configuration file
Add Dispatcherservlet Mappings
Creating Web-application-config.xml Files
Creating Webmvc-config.xml Files
Create index.jsp
Create a directory structure for a WEB application
This example applies the directory structure that will be generated by default in the Eclipse Dynamic Web Project Wizard, adding Config and flows subdirectories in the Web-inf directory, where the Config subdirectory is used to store various profiles, flows the subdirectories The definition file for Spring Web flow. The final catalog is shown in Figure 3:
Figure 2 Directory structure