sqlmap-config.xml 1.82 KB
<?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" />
		<!-- 对于未知的SQL查询,允许返回不同的结果集以达到通用的效果 -->
		<setting name="multipleResultSetsEnabled" value="true" />
		<!-- 允许使用列标签代替列名 -->
		<setting name="useColumnLabel" value="true" />
		<!-- 数据库超过25000秒仍未响应则超时 -->
		<setting name="defaultStatementTimeout" value="25000" />
		<!-- <setting name="logImpl" value="STDOUT_LOGGING" /> -->
	</settings>

	<!-- 全局别名设置,在映射文件中只需写别名,而不必写出整个类路径 -->
	<typeAliases>


	</typeAliases>

	<typeHandlers>
		<typeHandler
			handler="com.diligrp.orders.dao.typehandler.OrderManStatusHandler"
			javaType="com.diligrp.orders.common.enums.order.OrderManStatus" />
		<typeHandler handler="com.diligrp.orders.dao.typehandler.OrderPayTypeHandler"
			javaType="com.diligrp.orders.publics.enums.PayType" />
		<typeHandler handler="com.diligrp.orders.dao.typehandler.ReOrderStatusHandler"
			javaType="com.diligrp.orders.publics.enums.ReOrderStatus" />
		<typeHandler
			handler="com.diligrp.orders.dao.typehandler.OrderPayStatusHandler"
			javaType="com.diligrp.orders.publics.enums.PayStatus" />
		<typeHandler
			handler="com.diligrp.orders.dao.typehandler.OrderDeliveryTypeHandler"
			javaType="com.diligrp.orders.publics.enums.OrderDeliveryType" />
	</typeHandlers>

	<!-- 映射文件路径 -->
	<mappers>
		<mapper resource="sqlmap/OrderItem.xml" />
		<mapper resource="sqlmap/Orders.xml" />
		<mapper resource="sqlmap/OrderMaxid.xml" />
		<mapper resource="sqlmap/OrdersJob.xml" />
	</mappers>


</configuration>