關於使用hibernate配置文件出錯

報錯如下

1.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘longint)’ at line 1
2.Unable to execute schema management to JDBC target [create table hibernate_sequence (next_val longint)]
3.Method “login” failed for object edu.fjnu.web.action.UserAction@16710c4c

出錯原因

hibernate.hbm.xml中,已經配置好各項信息,但是在可視化界面不小心重複配置了其他數據庫的方言,導致出錯。
這裏寫圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章