写了一个对mybatis的封装源码在 http://lawrence-zxc.github.io/2014/06/15/java-mybatis/ 这里,BaseDao是一个基础类,对Mapper中方法的实现,支持Oracle,Mysql等数据库,需要加入分页的xml配置,可留言在我的github上获取
1
zxc337 OP 分页可以不注入SqlSessionTemplate,用Mapper实现,在BaseDao里面封装;注入SqlSessionTemplate这个是为了切面统计sql执行时间
|