找到一篇帖子解决
Configuration cfg = new Configuration().configure();
SessionFactory sessionFactory = cfg.buildSessionFactory(new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build());
找到一篇帖子解决
Configuration cfg = new Configuration().configure();
SessionFactory sessionFactory = cfg.buildSessionFactory(new StandardServiceRegistryBuilder().applySettings(cfg.getProperties()).build());