ubuntu 下配置grails
来源:互联网 发布:淘宝托管公司排名 编辑:程序博客网 时间:2024/04/30 00:31
1. 从http://www.grails.org/Download下载最新版的grails
2. 解压文件:unzip grails-1.2.5.zip 3. 将解压后的文件夹移到/urs/lib/ :sudo mv grails-1.2.5 /usr/lib/ 4. 设置grails环境,在/etc/profile增加: #set grail environment export GRAILS_HOME=/usr/lib/grails-1.2.5 export PATH=$GRAILS_HOME/bin:$PATH5. 使设置生效:source /etc/profile
6. 查看GRAILS_HOME的值:echo $GRAILS_HOME
/usr/lib/grails-1.2.5
7. grails
Welcome to Grails 1.2.5 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: /usr/lib/grails-1.2.5
8. 创建HelloGrails
grails create-app HelloGrails
9. cd HelloGrails
10. grails create-domain-class org.example.Book
11. cd grails-app/domain/org/example/
12. gedit Book.groovy
package org.example
class Book {
String title
String author
static constraints = {
title(blank: false)
author(blank: false)
}
}
13 cd ../../../..
14 grails create-controller org.example.Book
15 gedit grails-app/controllers/org/example/BookController.groovy
package org.example
class BookController {
def scaffold = Book // Note the capital "B"
}
16 grails run-app
17 浏览http://localhost:8080/HelloGrails/book/
- ubuntu 下配置grails
- Linux下Grails开发环境变量配置
- windows下的grails安装与配置
- Grails 配置
- grails下acegi的访问规则的配置
- grails环境配置
- grails外部配置
- grails MyEclipse 插件配置
- grails链接oracle配置
- grails 配置mysql
- grails的成功配置
- Grails mac 下入门教程
- Ubuntu 下配置 aMule
- ubuntu下vsftpd配置
- ubuntu下vsftpd配置
- Ubuntu下phpMyAdmin配置
- UBUNTU下配置PHP
- ubuntu下配置tomcat
- Linux du 查看目录大小
- sicily 1240 Faulty Odometer
- ffmpeg tutorial 01----08讲解分析博文 + GStreamer的使用
- __DATE__,__FILE__,__LINE__,__TIME__,__FUNCTION__
- log
- ubuntu 下配置grails
- Python Mako Template 学习笔记[转]
- Gaussian envelope
- 路由器与交换机的功能和区别
- 周中小结
- [Mako]中文使用体验【limodou】
- sicily 1780 Faulty Odometer Again
- 二维数组 及 转换为 字符串
- 交换机、集线器、路由器区别和使用