The dialect was not set. Set the property hibernate.dialect

时间:2021-05-28 09:10:07

The   dialect   was   not   set.   Set   the   property   hibernate.dialect

load hibernate.cfg.xml 出现了问题

获取配置信息代码应该这样写

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

2009.8.31 更新.

An AnnotationConfiguration instance is required to use <mapping class="jebe7282/study/hibernate/Classes.hbm.xml"/>

这个是mapping 标签配置属性问题class 应该 改为resource

资源用resource,类用class