摘要: 以SSH案例来说,在我的Action中定义了两个map集合,使用Strust2的Prepareable拦截器接口,此处为初始化gradeMap和departmentMap集合, 实现这个接口的prepare()方法,这个方法会在action类的所有方法执行前执行,另外我们也可以按照它的规则来写一些其 阅读全文
posted @ 2018-01-30 13:37 ___struggle 阅读(3225) 评论(0) 推荐(1) 编辑
摘要: 通过会话工厂sessionFactory创建session openSession()和getCurrentSession()的区别 阅读全文
posted @ 2018-01-30 12:55 ___struggle 阅读(783) 评论(0) 推荐(0) 编辑