错误详情如下:

org.hibernate.exception.SQLGrammarException: could not execute statement错误

org.hibernate.exception.SQLGrammarException: could not execute statement错误

错误原因:

hibernate.cfg.xml配置文件中的hibernate所使用的数据库方言信息

<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>

该操作后会生成一条SQL语句,该语句不能被解析导致的。

解决方案:

将该条语句<property name="hibernate.dialect">org.hibernate.dialect.MySQLDialect</property>删除或注释掉即可。

 

相关文章: