![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Groovy
dean123363
这个作者很懒,什么都没留下…
展开
-
《Groovy入门经典》笔记
[b]第4章 列表、映射和范围[/b]在映射字面值中,如果某个元素的关键字是一个变量名,那么它将被解释成一个String值。在下面的范例中:[code="groovy"]def x = 1def y = 2def m = [x :y, y : x][/code]于是,m就是映射:[code="groovy"]m = ['x' : 2, 'y' : 1]...原创 2012-12-22 01:41:12 · 137 阅读 · 0 评论 -
Groovy学习笔记
[b]1.关于object.name的行为[/b]In Groovy, everything starts with the GroovyObject interface, which, like all theother classes we’ve mentioned, is declared in the package groovy.lang. It lookslike this...原创 2012-12-29 00:28:22 · 87 阅读 · 0 评论 -
Grails学习笔记之GORM
1.关联查询假设有以下领域对象:[code="groovy"]class Account{ Transaction transaction Date created}class Transaction{ Date date}[/code][code="groovy"]def c = Account.createCriteria()def no...原创 2013-01-10 02:00:47 · 206 阅读 · 0 评论