摘要: 1:/获取session的方法有两种: 第一种是SessionFactory.getCurrentSession,第二种种是SessionFactory.openSession (1)openSession每次都是新建一个Session;需要close() (2)getCurentSession是从 阅读全文
posted @ 2016-03-31 09:12 猫儿36 阅读(112) 评论(0) 推荐(0) 编辑