44 lines
2.1 KiB
XML
44 lines
2.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>
|
||
<settings>
|
||
<setting name="cacheEnabled" value="true" />
|
||
<setting name="lazyLoadingEnabled" value="true" />
|
||
<!--<setting name="aggressiveLazyLoading" value="false" />-->
|
||
<setting name="multipleResultSetsEnabled" value="true" />
|
||
<setting name="useColumnLabel" value="true" />
|
||
<setting name="useGeneratedKeys" value="false" />
|
||
<setting name="defaultExecutorType" value="SIMPLE" />
|
||
<setting name="defaultStatementTimeout" value="25000" />
|
||
<setting name="mapUnderscoreToCamelCase" value="true"/>
|
||
<!--当返回数据类型是map时,设置callSettersOnNulls会把值为null的key也返回-->
|
||
<setting name="callSettersOnNulls" value="true"/>
|
||
<!-- <setting name="logImpl" value="STDOUT_LOGGING"/>-->
|
||
|
||
</settings>
|
||
<plugins>
|
||
<plugin interceptor="com.github.pagehelper.PageInterceptor">
|
||
<!-- 支持通过Mapper接口参数来传递分页参数 -->
|
||
<property name="supportMethodsArguments" value="true"/>
|
||
<property name="rowBoundsWithCount" value="true"/>
|
||
<property name="reasonable" value="true"/>
|
||
<!-- 多数据源 方言 自动匹配 -->
|
||
<property name="autoRuntimeDialect" value="true"/>
|
||
</plugin>
|
||
<!-- mybatis写出sql记录控件(拦截器) -->
|
||
<!-- 自己写的那个拦截器 -->
|
||
<plugin interceptor="com.hzya.frame.jdbcUtil.service.SqlLogInterceptor">
|
||
<!-- 方言 -->
|
||
<property name="dialect" value="mysql"/>
|
||
</plugin>
|
||
<!-- <plugin interceptor="com.github.abel533.mapperhelper.MapperInterceptor">-->
|
||
<!-- <!–主键自增回写方法,默认值MYSQL,详细说明请看文档 –>-->
|
||
<!-- <property name="IDENTITY" value="MYSQL"/>-->
|
||
<!-- <!–通用Mapper接口,多个通用接口用逗号隔开 –>-->
|
||
<!-- <property name="mappers" value="com.github.abel533.mapper.Mapper"/>-->
|
||
<!-- </plugin>-->
|
||
</plugins>
|
||
</configuration>
|