码迷,mamicode.com
首页 > Web开发 > 详细

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

时间:2016-05-29 16:38:57      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:

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

 

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

标签:

原文地址:http://www.cnblogs.com/toSeeMyDream/p/5539677.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!