hibernate中出现The method configure() is undefined for the type Configuration
Configuration cfg = new Configuration();
SessionFactory sf=cfg.configure().buildSessionFactory();
上述代码显示如题所示的错误,求大神指导!!!
hibernate
configuration
------解决方案--------------------Configuration 看这个类型导入的包 是不是Hibernate的,别import成别的包了