Java Grails启动应用程序
每次我启动grails应用程序时,它都会显示这个错误消息,我不知道为什么 |错误2014-03-06 19:30:55494[localhost-startStop-1]错误context.grailContextLoader-初始化应用程序时出错:无法解析属性:位置:tutor.com.tutor;嵌套异常为org.hibernate.QueryException:无法解析属性:位置:tutor.com.tutor 消息:无法解析属性:位置:tutor.com.tutor;嵌套异常为org.hibernate.QueryException:无法解析属性:位置:tutor.com.tutor 这是my tutor.com.tutor域:Java Grails启动应用程序,java,mysql,spring,hibernate,grails,Java,Mysql,Spring,Hibernate,Grails,每次我启动grails应用程序时,它都会显示这个错误消息,我不知道为什么 |错误2014-03-06 19:30:55494[localhost-startStop-1]错误context.grailContextLoader-初始化应用程序时出错:无法解析属性:位置:tutor.com.tutor;嵌套异常为org.hibernate.QueryException:无法解析属性:位置:tutor.com.tutor 消息:无法解析属性:位置:tutor.com.tutor;嵌套异常为org.h
package tutor.com
class Tutor {
String description
String qualifications
String experience
double feedback
int rate
User user
static hasMany = [ subjects: Subject ]
static mapping={
description(sqlType: 'text')
}
static constraints = {
feedback(nullable:true)
}
}
您的
Bootstrap
或其他一些初始化代码中必须有某些内容才能调用缺少的tutor。location
属性是否正在尝试在Bootstrap.groovy中创建一些Tutors对象?包是否正确?