hibernate不会提交事务,需要自己编写代码提交。 IUserInfoDAO dao=DAOFactory.getUserInfoDAO(); Transaction tx=dao.getSession().beginTransaction(); ... tx.commit();