Skip to content

基于MyBatis分页插件,可以让mapper直接返回PageInfo而不用做二次转换。

Notifications You must be signed in to change notification settings

xjs1919/PageHelperExt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MyBatis分页插件扩展,可以让mapper直接返回PageInfo

MyBatis PageHelperExt

Build Status Coverage Status Dependency Status Maven central License Stack Overflow Project Stats

mybatis


Document:


描述:基于MyBatis分页插件(https://github.com/pagehelper/Mybatis-PageHelper),可以让mapper直接返回PageInfo而不用做二次转换。

1. 配置说明

pom.xml
	<dependency>
		<groupId>com.chrhc.mybatis</groupId>
		<artifactId>PageHelperExt</artifactId>
		<version>0.0.1</version>
	</dependency>

mybatis-config.xml

<objectFactory type="com.chrhc.mybatis.pagehelper.ext.PageObjectFactory" />

<objectWrapperFactory type="com.chrhc.mybatis.pagehelper.ext.PageObjectWrapperFactory" />

<plugins>
    <plugin interceptor="com.github.pagehelper.PageHelper">
        <property name="reasonable" value="true"/>
        <property name="supportMethodsArguments" value="true"/>
    </plugin>
</plugins>

2.关于作者:

作者QQ:605162215
作者邮箱:605162215@qq.com

About

基于MyBatis分页插件,可以让mapper直接返回PageInfo而不用做二次转换。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages