Spring Web Flow是Spring家族中的一位成员,他能简化Web应用的开发。在Grails0.6中就集成了Spring Web Flow这一Web应用开发利器。下面通过一个实例向大家展示一下在Grails中如何方便的使用Spring Web Flow。
1,“grails create-app WebFlowDemo”,输出如下:
D:\_DEV\grails_apps>grails create-app WebFlowDemoWelcome to Grails 0.6 - http://grails.org/Licensed under Apache Standard License 2.0Grails home is set to: D:\D\MY_DEV\grails0.6 Base Directory: D:\_DEV\grails_appsEnvironment set to developmentNote: No plugin scripts foundRunning script D:\D\MY_DEV\grails0.6\scripts\CreateApp.groovyOverriding previous definition of reference to groovyJarSet[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\src[mkdir] Created dir: D:\_DEV\grails_apps\WebFl owDemo\src\java[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\src\groovy[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\controllers[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\services[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\domain[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\taglib[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\utils[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\views[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\views\layouts[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\i18n[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\conf[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\test[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\test\unit[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\test\integration[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\scripts[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app\js[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app\css[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app\images[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app\WEB-INF\classes[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\web-app\META-INF[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\lib[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\conf\spring[mkdir] Created dir: D:\_DEV\grails_apps\WebFlowDemo\grails-app\conf\hibernate[propertyfile] Creating new property file: D:\_DEV\grails_apps\WebFlowDemo\application.properties[copy] Copying 2 files to D:\_DEV\grails_apps\WebFlowDemo[copy] Copying 2 files to D:\_DEV\grails_apps\WebFlowDemo\web-app\WEB-INF[copy] Copying 5 files to D:\_DEV\grails_apps\WebFlowDemo\web-app\WEB-INF\tld[copy] Copying 131 files to D:\_DEV\grails_apps\WebFlowDemo\web-app[copy] Copying 1 file to D:\_DEV\grails_apps\WebFlowDemo\grails-app\conf[copy] Copying 13 files to D:\_DEV\grails_apps\WebFlowDemo\grails-app[copy] Copying 1 file to D:\_DEV\grails_apps\WebFlowDemo\grails-app\conf\spring[copy] Copying 1 file to D:\_DEV\grails_apps\WebFlowDemo[copy] Copying 1 file to D:\_DEV\grails_apps\WebFlowDemo[copy] Copying 1 file to D:\_DEV\grails_apps\WebFlowDemo[propertyfile] Updating property file: D:\_DEV\grails_apps\WebFlowDemo\application.propertiesCreated Grails Application at D:\_DEV\grails_apps/WebFlowDemoD:\_DEV\grails_apps>
以上是小编为您精心准备的的内容,在的博客、问答、公众号、人物、课程等栏目也有的相关内容,欢迎继续使用右上角搜索按钮进行搜索grails
, app
, dev
, web app
, copy
, create ilter
, clnt create
, create
, listviewjquery mobileweb app
, iosin app purchaseiphone
, web app
, creating
, mkdir
dir
groovy grails、groovy on grails、grails config.groovy、groovy和grails、grails 引入 groovyx,以便于您获取更多的相关知识。