【发布时间】:2011-02-08 23:17:20
【问题描述】:
我正在阅读“Grails in Action”一书,但我一直停留在介绍 grails 控制台的那部分。在我的项目目录中,我输入“grails console”打开一个控制台窗口,控制台甚至输出信息表明它正在编译类,但是当我在控制台中输入这个时:
new Quote(author:'Larry Wall',content:'There is more than one method to our madness.').save()
我收到此错误:
unable to resolve class Quote
at line: 1, column: 1
Quote 类存在于grails-app/domain/qotd/Quote.groovy 的Quote.groovy 中,我无法运行上述命令。
这里出了什么问题?
【问题讨论】: