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

SSH项目中出现了

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

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

原文地址:https://www.cnblogs.com/mstk/p/5552628.html