<meta name="GENERATOR" content="OpenOffice.org 2.3 (Linux)">
<style type="text/css">
<!--
@page { size: 21cm 29.7cm; margin: 2cm }
P { margin-bottom: 0.21cm }
-->
</style>
我现在用的系统是ubuntu7.10 + jdk 1.5 + mysql 5
在ubuntu下配置grails环境可以用以下脚本:
grails.sh
#downloadgrails
wgethttp://dist.codehaus.org/grails/grails-bin-1.0.zip
#unzip
unzipgrails-bin-1.0.zip
#moveto/opt/grails
mvgrails-bin-1.0/opt/grails
#letshellshaspermissiontoexecute
chmod774/opt/grails/bin/*
chmod744/opt/grails/ant/bin/*
#setenvironmentvariable
echo'exportGRAILS_HOME=/opt/grails'>>/etc/bash.bashrc
echo'exportPATH=$PATH:$GRAILS_HOME/bin'>>/etc/bash.bashrc
source/etc/bash.bashrc
#test
grails
Grails是一个类似于Rails的Web框架,构建在Spring,Hibernate等框架的基础上,可以与Java平台无缝集成。相对RoR来说,Java开发人员更容易上手。
Grails提供了完整的Web Application开发平台,内置了Jetty Server,并提供了强大的功能, 如简单的对象关系映射(ORM),自动重新加载应用程序,为CRUD(新增,查询,修改,删除)操作提供代码自动生 成支架(scaffolding)。此外Grails还提供了一些在Java中惯用的语法包括:运用AOP思想的拦截器,动态标签库,JSP和GSP (Groovy Servers Pages)支持。
Grails是Groovy on Rails的缩写,也就是Ruby on Rails(ROR)在java的一种实现,另外一种实现是JRuby on Rails(JROR)。
我现在用的系统是ubuntu7.10 + jdk 1.5 + mysql 5
在ubuntu下配置grails环境可以用以下脚本:
grails.sh














