Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java Grails启动应用程序_Java_Mysql_Spring_Hibernate_Grails - Fatal编程技术网

Java Grails启动应用程序

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

每次我启动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域:

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对象?包是否正确?