首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2EE开发 >

hibernate中出现The method configure() is undefined for the type Configuration解决方法

2013-04-05 
hibernate中出现The method configure() is undefined for the type ConfigurationConfiguration cfg ne

hibernate中出现The method configure() is undefined for the type Configuration

Configuration cfg = new Configuration();

SessionFactory sf=cfg.configure().buildSessionFactory();
  上述代码显示如题所示的错误,求大神指导!!!


hibernate configuration
[解决办法]
Configuration 看这个类型导入的包 是不是Hibernate的,别import成别的包了

热点排行