接手开发一个程序,运行以后发现报以下的错误
exception:className=com.xxx.xxxService method=xxx exceptionMessage=could not execute query; nested exception is org.hibernate.exception.SQLGrammarException: could not execute query
原因:查询语句和数据库中的字段不匹配
解决方法:查看工程的数据库是否更新了;查看SQL或HQL语句,使之与数据库中的表保持一致。