PageHelper v5.0.0
- Use QueryInterceptor spec to handle paging logic
- New pagination plugin interceptor
com.github.pagehelper.PageInterceptor
- New
Dialect
PageHelper
is a special implementation class, the previous function is implemented in more user-friendly ways - New pagination plugin only a
dialect
parameter, the defaultdialect
isPageHelper
PageHelper
continue to support previously provided parameters, Among the latest to use the document has been fully updatedPageHelper
has ahelperDialect
parameter which is the same functional as the previousdialect
- Added paging implementation based on pure
RowBounds
andPageRowBounds
,
incom.github. pagehelper. dialect. rowbounds
package, it is used asdialect
Parameter 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
PageHelper
are 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