没有合适的资源?快使用搜索试试~ 我知道了~
首页Grails1.1中文文档:入门与配置详解
Grails1.1中文文档:入门与配置详解
下载需积分: 3 | PDF格式 | 2.38MB |
更新于2024-07-31
| 37 浏览量 | 1 下载量 举报
"Grails1.1中文文档2"
这篇文档是关于Grails 1.1框架的中文版教程,Grails是一个基于Groovy语言的开源Web应用框架,旨在简化开发流程,它遵循"Convention over Configuration"的原则。文档旨在帮助开发者理解和使用Grails 1.1,特别适合对Grails资料需求较高的读者。
文档内容涵盖了多个方面:
1. **入门**:首先介绍了如何下载和安装Grails,包括从旧版本1.0.x升级的注意事项,如Groovy 1.6和Java 5.0的要求,以及配置、插件、脚本、命令行、数据映射和REST支持的变更。接着,通过创建一个应用程序和编写HelloWorld例子来快速入门。此外,还提到了如何在不同的IDE(IntelliJ IDEA, NetBeans, Eclipse, TextMate)中设置Grails环境。
2. **约定优于配置**:Grails的核心原则之一,意味着开发者可以依赖于默认的配置和结构,减少手动配置的工作量。
3. **配置**:详细讲解了基本配置,包括内置选项(如生成War文件)、日志配置(如日志级别、输出目标和堆栈跟踪),以及针对不同环境的配置(多环境配置、环境检测)和数据源设定(JNDI数据源和自定义数据库迁移)。此外,还介绍了版本管理和外部配置的使用。
4. **命令行**:介绍了如何创建Gant脚本、重用Grails脚本,包括任务定义、事件钩子、自定义构建和Ant、Maven的集成,使得开发者能够灵活地定制和扩展Grails的构建过程。
5. **对象关联映射(GORM)**:GORM是Grails的数据访问层,提供了一种面向对象的方式来操作数据库。文档提供了快速入门指南,包括CRUD操作(创建、读取、更新、删除)的示例,以及如何进行领域建模和定义关联,如一对一、一对多、多对多关系等。
6. **其他主题**:文档可能还涵盖了其他高级主题,如控制器、服务、视图、拦截器、国际化、安全性和插件的使用,但具体内容未给出。
这个文档为Grails 1.1的新手和进阶开发者提供了全面的指导,帮助他们快速上手并深入理解Grails框架的各种特性和功能。

描述.............................................................................................................................................292
allowedMethods...............................................................................................................................293
用途.............................................................................................................................................293
举例.............................................................................................................................................293
描述.............................................................................................................................................293
allowedMethods...............................................................................................................................294
用途.............................................................................................................................................294
举例.............................................................................................................................................294
描述.............................................................................................................................................295
bindData ..........................................................................................................................................296
用途.............................................................................................................................................296
举例.............................................................................................................................................296
描述.............................................................................................................................................296
chain.................................................................................................................................................296
用途.............................................................................................................................................296
举例.............................................................................................................................................296
描述.............................................................................................................................................297
controllerName ................................................................................................................................297
用途.............................................................................................................................................297
举例.............................................................................................................................................297
描述.............................................................................................................................................297
defaultAction ...................................................................................................................................298
用途.............................................................................................................................................298
举例.............................................................................................................................................298
flash .................................................................................................................................................298
用途.............................................................................................................................................298
举例.............................................................................................................................................298
描述.............................................................................................................................................298
grailsApplication..............................................................................................................................299
用途.............................................................................................................................................299
举例.............................................................................................................................................299
描述.............................................................................................................................................299
params ..............................................................................................................................................299
用途.............................................................................................................................................299
举例.............................................................................................................................................299
描述.............................................................................................................................................300
redirect .............................................................................................................................................300
用途.............................................................................................................................................300
举例.............................................................................................................................................300
描述.............................................................................................................................................300
参数....................................................................................................................................300
render................................................................................................................................................301
用途.............................................................................................................................................301
举例.............................................................................................................................................301
描述.............................................................................................................................................302
request ..............................................................................................................................................302

用途.............................................................................................................................................302
举例.............................................................................................................................................302
描述.............................................................................................................................................302
response ...........................................................................................................................................303
用途.............................................................................................................................................303
举例.............................................................................................................................................303
描述.............................................................................................................................................303
servletContext ..................................................................................................................................303
用途.............................................................................................................................................303
举例.............................................................................................................................................303
描述.............................................................................................................................................304
session ..............................................................................................................................................304
用途.............................................................................................................................................304
举例.............................................................................................................................................304
描述.............................................................................................................................................304
withForm..........................................................................................................................................304
用途.............................................................................................................................................304
举例.............................................................................................................................................305
描述.............................................................................................................................................305
withFormat ......................................................................................................................................305
用途.............................................................................................................................................305
举例.............................................................................................................................................305
描述.............................................................................................................................................306
Database Mapping 用法...................................................................................................................306
autoTimestamp.................................................................................................................................307
用途.............................................................................................................................................307
举例.............................................................................................................................................307
描述.............................................................................................................................................307
batchSize...........................................................................................................................................307
用途.............................................................................................................................................307
举例.............................................................................................................................................308
描述.............................................................................................................................................308
cache.................................................................................................................................................308
用途.............................................................................................................................................308
举例.............................................................................................................................................308
描述.............................................................................................................................................309
cascade..............................................................................................................................................309
用途.............................................................................................................................................309
举例.............................................................................................................................................310
描述.............................................................................................................................................310
column..............................................................................................................................................311
用途..............................................................................................................................................311
举例..............................................................................................................................................311
描述..............................................................................................................................................311
discriminator.....................................................................................................................................312
用途.............................................................................................................................................312

举例.............................................................................................................................................312
描述.............................................................................................................................................312
dynamicInsert...................................................................................................................................313
用途.............................................................................................................................................313
举例.............................................................................................................................................313
描述.............................................................................................................................................313
dynamicUpdate.................................................................................................................................313
用途.............................................................................................................................................313
举例.............................................................................................................................................313
描述.............................................................................................................................................314
fetch..................................................................................................................................................314
用途.............................................................................................................................................314
举例.............................................................................................................................................314
描述.............................................................................................................................................314
id.......................................................................................................................................................315
用途.............................................................................................................................................315
举例.............................................................................................................................................315
描述.............................................................................................................................................315
indexColumn....................................................................................................................................316
用途.............................................................................................................................................316
举例.............................................................................................................................................316
描述.............................................................................................................................................316
joinTable...........................................................................................................................................317
用途.............................................................................................................................................317
举例.............................................................................................................................................317
描述.............................................................................................................................................318
lazy...................................................................................................................................................318
用途.............................................................................................................................................318
举例.............................................................................................................................................318
描述.............................................................................................................................................318
order..................................................................................................................................................319
用途.............................................................................................................................................319
举例.............................................................................................................................................319
描述.............................................................................................................................................319
sort....................................................................................................................................................319
用途.............................................................................................................................................319
举例.............................................................................................................................................320
描述.............................................................................................................................................320
table..................................................................................................................................................320
用途.............................................................................................................................................320
举例.............................................................................................................................................320
描述.............................................................................................................................................320
type...................................................................................................................................................321
用途.............................................................................................................................................321
举例.............................................................................................................................................321
描述.............................................................................................................................................322

version..............................................................................................................................................322
用途.............................................................................................................................................322
举例.............................................................................................................................................322
描述.............................................................................................................................................322
Domain Class 用法...........................................................................................................................323
addTo*..............................................................................................................................................323
用途.............................................................................................................................................323
举例.............................................................................................................................................323
描述.............................................................................................................................................323
attach.................................................................................................................................................324
用途.............................................................................................................................................324
举例.............................................................................................................................................324
描述.............................................................................................................................................324
belongsTo .........................................................................................................................................325
用途.............................................................................................................................................325
举例.............................................................................................................................................325
描述.............................................................................................................................................325
belongsTo .........................................................................................................................................325
用途.............................................................................................................................................325
举例.............................................................................................................................................325
描述.............................................................................................................................................325
constraints ........................................................................................................................................326
用途.............................................................................................................................................326
举例.............................................................................................................................................326
描述.............................................................................................................................................326
count.................................................................................................................................................326
用途.............................................................................................................................................326
举例.............................................................................................................................................326
countBy*...........................................................................................................................................327
用途.............................................................................................................................................327
举例.............................................................................................................................................327
描述.............................................................................................................................................327
createCriteria ...................................................................................................................................328
用途.............................................................................................................................................328
举例.............................................................................................................................................328
描述.............................................................................................................................................328
delete.................................................................................................................................................331
用途.............................................................................................................................................331
举例.............................................................................................................................................331
描述.............................................................................................................................................331
discard...............................................................................................................................................332
用途.............................................................................................................................................332
举例.............................................................................................................................................332
描述.............................................................................................................................................332
errors.................................................................................................................................................332
用途.............................................................................................................................................332

举例.............................................................................................................................................332
描述.............................................................................................................................................332
executeQuery....................................................................................................................................333
用途.............................................................................................................................................333
举例.............................................................................................................................................333
描述.............................................................................................................................................333
executeUpdate..................................................................................................................................334
用途.............................................................................................................................................334
举例.............................................................................................................................................334
描述.............................................................................................................................................334
exists.................................................................................................................................................334
用途.............................................................................................................................................334
举例.............................................................................................................................................335
描述.............................................................................................................................................335
fetchMode ........................................................................................................................................335
用途.............................................................................................................................................335
举例.............................................................................................................................................335
描述.............................................................................................................................................335
find....................................................................................................................................................335
用途.............................................................................................................................................335
举例.............................................................................................................................................336
描述.............................................................................................................................................336
findAll...............................................................................................................................................336
用途.............................................................................................................................................336
举例.............................................................................................................................................336
描述 ...........................................................................................................................................337
findAllBy*........................................................................................................................................337
用途.............................................................................................................................................337
举例.............................................................................................................................................338
描述.............................................................................................................................................338
findAllWhere....................................................................................................................................339
用途.............................................................................................................................................339
举例.............................................................................................................................................339
描述.............................................................................................................................................339
findBy*.............................................................................................................................................339
用途.............................................................................................................................................339
举例.............................................................................................................................................339
描述.............................................................................................................................................340
findWhere.........................................................................................................................................341
用途.............................................................................................................................................341
举例.............................................................................................................................................341
描述.............................................................................................................................................341
get.....................................................................................................................................................341
用途.............................................................................................................................................341
举例.............................................................................................................................................341
描述.............................................................................................................................................341
剩余490页未读,继续阅读
相关推荐










属牛
- 粉丝: 3
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助


最新资源
- 免安装绿色版SQL Server客户端工具发布
- 在Excel VBA中清空剪切板的技巧与实现
- Android平台下扩展ImageView用于MJPEG视频流展示
- 数据结构教程:源码解析与解题技巧
- 浏览器实现PDF及Office文件在线预览教程
- JavaScript游戏开发:myowngame4主文件解析
- SSH框架下文件上传下载的实现方法
- 免费Delphi开发的触摸屏软键盘TouchKey V1.0介绍
- Python实现Legendrian接触同源性计算工具
- 微信小程序开发:模仿分答APP源代码分享
- 探索FlyFF网店程序:Tz-o.Cn平台的电商解决方案
- Go-Go语言实现高效有限状态机指南
- OA系统特版发布:仿Windows界面,功能强大
- Godot Engine中iOS Yodo1Mas插件的使用教程
- Tftpd64-4.00:全面支持IPv6的免费TFTP应用
- 掌握最新IDE与Windows反编译工具技巧
安全验证
文档复制为VIP权益,开通VIP直接复制

扫码关注,限时领取CSDN余额