Hibernate / Junit 運行出錯
錯誤:org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
已經(jīng)從零開始編寫代碼3次了,依然沒有找到錯誤;
求詳解,非常感謝!
錯誤:org.hibernate.HibernateException: Connection cannot be null when 'hibernate.dialect' not set
已經(jīng)從零開始編寫代碼3次了,依然沒有找到錯誤;
求詳解,非常感謝!
2016-04-02
舉報
2016-04-02
//創(chuàng)建配置對象
Configuration config = new Configuration().configure();
要獲取到hibernate.cfg.xml中的信息
2016-05-05
沒看懂什么意思,怎么獲取信息?