private static SessionFactory BuildSessionFactory() {
Configuration cfg = new Configuration().configure();
ServiceRegistry sr = new ServiceRegistryBuilder().applySettings(cfg.getPro
红色部分为特别需要注意的!经常犯错!!
private static SessionFactory BuildSessionFactory() {
Configuration cfg = new Configuration().configure();
ServiceRegistry sr = new ServiceRegistryBuilder().applySettings(cfg.getPro
红色部分为特别需要注意的!经常犯错!!