Configuration config = new Configuration().configure();報錯“需要捕獲異常”
但是加了try/catch塊之后又報錯說:No exception of type HibernateException can be thrown; an exception type must be a subclass of Throwable
但是加了try/catch塊之后又報錯說:No exception of type HibernateException can be thrown; an exception type must be a subclass of Throwable
2018-06-06
舉報
2018-06-07
依賴jar包的問題,把hibernate-release-5.3.1.Final\lib\required下的包全部引入就ok了!
2018-06-07
這裏有個解決辦法,你瞧瞧呢,我沒看:https://blog.csdn.net/weiqingli190949353/article/details/52742875
2018-06-07
遇到同一個問題的路人甲路過,解決了麻煩頂我一下!
2018-06-06
直接拋Exception 試試