Type grails run-app to start the application.
输入grailsrun-app启动应用程序。
Take a look at grails-app/views/flight/create.gsp.
查看一下grails-app/views/flight/create.gsp。
Type grails stats at the command line to confirm this.
在命令行输入grailsstats以确认这点。
If you type grails clean, you should see output similar to Listing 4.
如果输入grailsclean,应该看到类似于清单4的输出。
To begin, start in a clean directory and type grails create-app trip-planner.
首先,在一个空白目录下,输入grailscreate-app trip-planner。
To begin, open grails-app/controllers/EntryController.groovy in a text editor.
首先,在一个文本编辑器内打开grails-app/controllers/EntryController.groovy。
When you type grails clean, the application directory under projects is deleted.
当键入grailsclean时,projects下的application目录会被删除。
To prepare a full grails application for deployment, you normally type grails war.
要准备一个完整的grails应用程序以便部署,通常需要输入grails war。
Running a Grails web application.
运行一个Grailsweb应用程序。
I'll also talk about Grails services.
我还会讨论Grails服务。
Writing your first Grails application.
编写第一个Grails应用程序。
Restart Grails if it is still running.
如果Grails仍在运行的话,重新启动它。
Listing 7. A simple custom Grails tag.
清单7.简单的自定义grails标记。
Start up Grails if it isn't already running.
如果Grails还没有运行就启动它。
See Resources for more information on Grails.
有关Grails的更多信息,请参见参考资料。
Then create a new user for your Grails instance.
随后为您的Grails实例创建一个新用户。
Now you are ready to run the Grails war command.
现在可以运行Grailswar命令了。
In a normal Grails application, this is not an issue.
在普通的Grails应用程序中,这不成问题。
We're using the Grails tag library to help us out here.
此处,我们使用了Grails标签库。
Now we're ready to tell Grails where to find our database.
现在,我们准备告诉Grails在哪儿找到我们的数据库。
You can do the same in Grails with just a few lines of code.
您只需要几行代码就可以在Grails 中实现这一点。
Provide at least a basic level of support for Grails development.
提供至少一个支持Grails开发的基础层。
Grails makes it easy to develop by not making you write much code.
使用Grails不必编写很多代码就可以轻松地进行开发。
Luckily, Grails can handle all of these view technologies with ease.
幸运的是,Grails能够轻松地处理所有这些视图技术。
but it does let us touch many of the attractive features of Grails.
但是它能够让我们接触到Grails的很多优秀功能。
But to appreciate Grails fully, you have to experience it first-hand.
不过,要想全面地鉴赏grails,还需要亲身体验一下。
We believe this makes Grails development a quite a lot more enjoyable.
我们相信这能让Grails的开发更有乐趣。
This is what I use in most cases because it feels the most Grails-like.
大多数情况下我都会使用这个块,因为它感觉最像Grails。
To create a custom plug-in, you must change your Grails routine slightly.
要创建一个自定义插件,必须略微更改Grails例程。
You have seen how Grails makes it possible to rapidly build a Web application.
您已经看到如何使用Grails快速构建Web应用程序。
应用推荐