室内甲醛和苯含量标准:Hibernate 的SessionFactory问题
来源:百度文库 编辑:杭州交通信息网 时间:2024/05/29 14:20:16
在Hibernate里,我一写
“SessionFactory sf = new Configuration().configure().buildSessionFactory();”
在Configuration处 就提示我“Cannot instantiate the type Configuration”
在configure处 就提示我 “The method configure() is undefined for the type Configuration”
这是什么原因呢?
谢谢
“SessionFactory sf = new Configuration().configure().buildSessionFactory();”
在Configuration处 就提示我“Cannot instantiate the type Configuration”
在configure处 就提示我 “The method configure() is undefined for the type Configuration”
这是什么原因呢?
谢谢
Configuration cfg = new Configuration();
cfg.configure(CONFIG_FILE_LOCATION);////////CONFIG_FILE_LOCATION
sf= cfg.buildSessionFactory();
没有指定类型。
请问怎么解决的
我也出现了同样的问题