org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dia

版本异常,不同版本的hibernate,写法不一定一样

旧版本

解决方法

Configuration cfg = new Configuration().configure(); 

SessionFactory sessionFactory = cfg.buildSessionFactory(new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build());

我是用的hibernate4.3版本


猜你喜欢

转载自blog.csdn.net/JiangDi074/article/details/79878838
今日推荐