1. 程式人生 > >Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet 報錯原因

Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet 報錯原因

jpa執行分頁操作時,可能報錯Caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet


原因:
1.表與欄位沒有對應起來
2.資料庫連線池配置方言與資料庫不匹配
//oracle資料庫方言
hibernate.dialect=org.hibernate.dialect.Oracle10gDialect
//mysql資料庫方言
hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect