Coding in Grails, thinking in Java

[color=red]Coding in Grails, thinking in Java[/color] [size=medium] [b]多好的题目啊!忍不住转发一下,大家共享之!
----转自:http://inhouse32.appspot.com/index.html
一个不错的grails+GAE+jQuery+Ajax网站,本身就是在GAE上的应用。极力推荐大家过去看看!原文如下:很简单的,就不翻译了。[/b]

[color=blue]Coding in Grails, thinking in Java
August 12th, 2009

By default we create a domain class and generate controller and view for that domain class. Run the app and everything works fine.

Create another controller and access that domain object will encounter java.lang.NullPointerException due to domain object is null.

Simply, because I forgot to import that domain class into this controller.

This reminds me if I don't know how to do things in Grails, think, how I do it in Java.[/color]


正如所言,Grails编码,用Java思考,面向对象思想是最重要的。[/size]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值