}catch(HibernateException e) { e.printStackTrace(); SessionClose.close(session, tx); } } ---------------------- 我在test.class ---------------------- User a = new User("shaw","warpten"); User b = new User("Alice","900518"); User c = new User("Tom","Tom"); User d = new User("Jack","Jack"); User e = new User("Tony","Tony"); User f = new User("Shark","Shark");