- Use QueryInterceptor spec to handle paging logic
- New pagination plugin interceptor
com.github.pagehelper.PageInterceptor - New
DialectPageHelperis a special implementation class, the previous function is implemented in more user-friendly ways - New pagination plugin only a
dialectparameter, the defaultdialectisPageHelper PageHelpercontinue to support previously provided parameters, Among the latest to use the document has been fully updatedPageHelperhas ahelperDialectparameter which is the same functional as the previousdialect- Added paging implementation based on pure
RowBoundsandPageRowBounds,
incom.github. pagehelper. dialect. rowboundspackage, it is used asdialectParameter sample implementation, more detailed documentation will be added later - Removed inappropriate orderby functions that appear in pagination plugin. It will provide a separate sort plug-ins in the future
- Remove
PageHelperare less commonly used methods - A new document, an important part of the update has been mentioned in the changelog, provides the English version of this document
- fix bug #149
- renamed Db2RowDialect to Db2RowBoundsDialect
- All thrown exceptions being replaced by PageException
中文:
- 使用 QueryInterceptor 规范 处理分页逻辑
- 新的分页插件拦截器为
com.github.pagehelper.PageInterceptor - 新的
PageHelper是一个特殊的Dialect实现类,以更友好的方式实现了以前的功能 - 新的分页插件仅有
dialect一个参数,默认的dialect实现类为PageHelper PageHelper仍然支持以前提供的参数,在最新的使用文档中已经全部更新PageHelper的helperDialect参数和以前的dialect功能一样,具体可以看文档的参数说明- 增加了基于纯
RowBounds和PageRowBounds的分页实现,在com.github.pagehelper.dialect.rowbounds包中,这是用于作为dialect参数示例的实现,后面会补充更详细的文档 - 去掉了不适合出现在分页插件中的 orderby 功能,以后会提供单独的排序插件
- 去掉了
PageHelper中不常用的方法 - 新的文档,更新历来更新日志中提到的重要内容,提供英文版本文档
- 解决 bug #149
- 将 Db2RowDialect 改为 Db2RowBoundsDialect
- 所有分页插件抛出的异常改为 PageException
Support Spring Boot:
https://github.com/pagehelper/pagehelper-spring-boot