Connection cannot be null when 'hibernate.dialect' not set

后端 未结 15 1706
悲&欢浪女
悲&欢浪女 2020-12-16 11:12

having more issues with seting up hibernate with spring3. this time it is saying that connection is nul as the dialect is not set which it is on my hibernate.cfg.xml file.

15条回答
  •  情话喂你
    2020-12-16 11:24

    i think you are not configure hibernate.cfg.xml.

    Configuration configuration = new Configuration();
    configuration.configure("hibernate.cfg.xml");
    SessionFactory factory = configuration.buildSessionFactory();
    

提交回复
热议问题