GZMachinesWeb/build/classes/spring/mybatis-config.xml

21 lines
1.1 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>