项目地址:http://git.oschina.net/free/Mybatis_PageHelper
软件介绍:http://www.oschina.net/p/mybatis_pagehelper
分页插件示例: http://my.oschina.net/flags/blog/228700
这是一个目前为止最好用的Mybatis物理分页插件,如果你也在用Mybatis,建议尝试该分页插件,这个一定是最方便使用的分页插件。
v2.0更新内容:
1.支持Mybatis缓存,count和分页同时支持(二者同步)
2.修改拦截器签名,拦截Executor,签名如下:
@Intercepts(@Signature(type = Executor.class, method = "query", args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class}))
3.将Page类移到外面,方便调用
来自:开源中国社区