创建服务对象到不进去包呢?
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(config.getProperties()).getBootstrapServiceRegistry(); 创建服务对象到不进去包呢? 什么情况啊 求大神指导
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(config.getProperties()).getBootstrapServiceRegistry(); 创建服务对象到不进去包呢? 什么情况啊 求大神指导
2016-12-05
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.Transaction;
import org.hibernate.cfg.Configuration;
import org.hibernate.jdbc.Work;
import org.hibernate.service.ServiceRegistry;
import org.hibernate.service.ServiceRegistryBuilder;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
删除掉原来的那几个,把现在这段复制粘贴到代码中,如果还报错,就考虑是不是hibernate的核心jar包没有导入成功~
举报