摘要:
private static SessionFactory sessionFactory = null;static{Configuration configuration =new Configuration(); configuration.configure(); ServiceRegistry serviceRegistry =new ServiceRegistryBuilder().applySettings(configuration.getProperties()).buildServiceRegistry(); sessionFactory = configuration.b. 阅读全文