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
          主站蜘蛛池模板: 元江| 玉环县| 鹤峰县| 富宁县| 商洛市| 花莲市| 花垣县| 泗洪县| 法库县| 志丹县| 阜阳市| 阿克苏市| 西宁市| 孙吴县| 秭归县| 三原县| 金阳县| 白玉县| 盐津县| 阿尔山市| 溧水县| 梧州市| 石门县| 中卫市| 越西县| 临高县| 郸城县| 双柏县| 佳木斯市| 涞源县| 临泽县| 天全县| 开封市| 壶关县| 昌宁县| 竹北市| 普宁市| 库车县| 偏关县| 土默特左旗| 德州市|