First they ignore you
          then they ridicule you
          then they fight you
          then you win
              -- Mahatma Gandhi
          Chinese => English     英文 => 中文             
          隨筆-221  評論-1047  文章-0  trackbacks-0

          Grails是構建在開源技術如:Spring,HibernateSiteMesh之 上的Web框架。它提供一個類似于Rails的平臺可以無縫與Java平臺相集成使得開發者能利用當前在Java和JDK方面的投入。Grails提供一 個完整的開發平臺包括內置Jetty web服務器并提供了一些強大的功能比如簡單的對象關系映射(ORM),自動重新加載應用程序,為CRUD(新增,查詢,修改,刪除)操作提供代碼自動生 成支架(scaffolding)。此外Grails還提供了一些在Java中慣用的語法包括:運用AOP思想的攔截器,動態標簽庫,JSP和GSP (Groovy Servers Pages)支持。

          Grails是Groovy on Rails的縮寫,也就是Ruby on Rails(ROR)在java的一種實現,另外一種實現是JRuby on Rails(JROR)。
          這里結合我在Ubuntu(在VMware workstation虛擬機上安裝的Ubuntu的6.06 LTS Server)上的安裝過程做個簡要的筆記。
          準備工作:
          安裝Java SDK 1.4或者更高版本,并設置好JAVA_HOME
          安裝步驟:
          下載Grails最新版本,我下載的是Grails 0.3 development snapshot(tar/gz版本竟然連接錯誤,暈)
          選擇個目錄解壓縮Grails(我選擇的是/opt/grails)
          設置GRAILS_HOME環境變量
          把Grails的bin目錄添加到環境變量PATH中
          命令行下測試下grails,如何看到幫助就說明你安裝成功了。
          以上步驟相關代碼:
          #get grails wget http://build.canoo.com/grails/artifacts/grails-bin-0.3-SNAPSHOT.zip #unzip grails and move to the directory you want. unzip grails-bin-0.3-SNAPSHOT.zip mv grails-bin-0.3-SNAPSHOT /opt/grails #let shells has permission to execute chmod 774 /opt/grails/bin/* chmod 744 /opt/grails/ant/bin/* #set environment variable echo export GRAILS_HOME=/opt/grails>>/etc/bash.bashrc echo export PATH=$PATH:$GRAILS_HOME/bin>>/etc/bash.bashrc source /etc/bash.bashrc #test grails


          原文地址:http://blog.rubypdf.com/2006/10/18/%e5%ae%89%e8%a3%85grails/

          附: Groovy與Grails同甘共苦,苦盡甘來

          posted on 2007-04-22 22:00 山風小子 閱讀(2093) 評論(1)  編輯  收藏 所屬分類: Groovy & Grails
          主站蜘蛛池模板: 万宁市| 江津市| 张北县| 阿图什市| 昭苏县| 宣武区| 左贡县| 陆河县| 公主岭市| 刚察县| 铅山县| 股票| 厦门市| 肃北| 胶南市| 甘德县| 安平县| 麻栗坡县| 邳州市| 苍山县| 深圳市| 乃东县| 石嘴山市| 股票| 滦平县| 图片| 贡山| 嘉义市| 东莞市| 白水县| 荔浦县| 镇平县| 漳平市| 宝山区| 民勤县| 永福县| 扎兰屯市| 天水市| 高州市| 鄂托克旗| 五华县|