六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 47|回复: 0

Coding in Grails, thinking in Java

[复制链接]

升级  20%

2

主题

2

主题

2

主题

童生

Rank: 1

积分
10
 楼主| 发表于 2013-1-23 02:28:13 | 显示全部楼层 |阅读模式
Coding in Grails, thinking in Java    多好的题目啊!忍不住转发一下,大家共享之!
----转自:http://inhouse32.appspot.com/index.html
    一个不错的grails+GAE+jQuery+Ajax网站,本身就是在GAE上的应用。极力推荐大家过去看看!原文如下:很简单的,就不翻译了。


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.



    正如所言,Grails编码,用Java思考,面向对象思想是最重要的。
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表