<?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>
	<!--  
	<typeAliases>
		<typeAlias alias="Product" type="com.lycheepay.demo.common.model.Product" />
	</typeAliases>
	-->
	<settings>
		<!-- 避免local session cache造成在同一个事务中多次select不会去实际查数据库的问题 -->
		<setting name="localCacheScope" value="STATEMENT"/>
<!-- 		<setting name="logImpl" value="STDOUT_LOGGING"/> -->
	</settings>
	
	<plugins>
	    <!-- com.github.pagehelper为PageHelper类所在包名 -->
	    <plugin interceptor="com.github.pagehelper.PageHelper">
	        <property name="dialect" value="mysql"/>
	        <!-- 该参数默认为false -->
	        <!-- 设置为true时，使用RowBounds分页会进行count查询 -->
	        <property name="rowBoundsWithCount" value="true"/>
	    </plugin>
	</plugins>
	
</configuration>