最新回答 / 幕粉一枚
public class Students { private int sid; private String sname; private String gender; private Date birthday; private String address; public Students(){} public Students(int sid, String sname, String gender, Date birthday, String address) ...
2018-02-23
最赞回答 / qq_22_7
自己已经解决啦,其实还是版本的问题,所以代码改了一下public void init() { // 创建配置对象 ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().configure().build(); //创建会话工厂对象 sessionFactory = new MetadataSources(serviceRegistry).buildM...
2018-01-21