首页 > 技术文章 > org.hibernate.exception.SQLGrammarException: could not execute query

mstk 2016-06-02 12:40 原文

SSH项目中出现了

org.hibernate.exception.SQLGrammarException: could not execute query

错误,仔细检查后发现,是把createQuery()写成了createSQLQuery(),造成语法错误,无法执行SQL语句。

推荐阅读