org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update

org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 今天開發項目時,遇到一個錯誤每次執行插入方法是老報異常: 1.org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 2.org.springframework.dao.InvalidDataAccessResourceUsageException: Could not execute JDBC batch update; nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 通常狀況下可能的緣由: 1.數據庫裏面的表沒建立,這點應該去檢查一下,可能樓建立了。 2.數據庫對應表裏面的字段沒有建立,致使插入語句的時候報錯。 3.數據庫裏面的表結構與配置文件中的表結構不一致。