21 lines
1.1 KiB
XML
21 lines
1.1 KiB
XML
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
|||
|
|
<!DOCTYPE configuration
|
|||
|
|
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
|||
|
|
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
|||
|
|
<configuration>
|
|||
|
|
<plugins>
|
|||
|
|
<plugin interceptor="com.github.pagehelper.PageInterceptor">
|
|||
|
|
<!-- 设置数据库类型 Oracle, Mysql, MariaDB, PostgreSQL, SQLServer, Derby, Sybase, SQLServer2012, H2 -->
|
|||
|
|
<property name="helperDialect" value="mysql"/>
|
|||
|
|
<!-- 设置为true时,会将RowBounds第一个参数offset当成页码处理,默认false -->
|
|||
|
|
<property name="offsetAsPageNum" value="true"/>
|
|||
|
|
<!-- 设置为true时,使用RowBounds分页会进行count查询 -->
|
|||
|
|
<property name="rowBoundsWithCount" value="true"/>
|
|||
|
|
<!-- 设置为true时,如果pageSize=0或者RowBounds.limit = 0就会查询出全部的结果 -->
|
|||
|
|
<property name="pageSizeZero" value="true"/>
|
|||
|
|
<!-- 设置为true时,如果将分页参数合法化,默认false -->
|
|||
|
|
<property name="reasonable" value="true"/>
|
|||
|
|
</plugin>
|
|||
|
|
</plugins>
|
|||
|
|
</configuration>
|