sqlmap-config.xml
1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?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>
<typeAlias type="com.b2c.dtms.domain.OrderMaxid" alias="orderMaxid" />
<typeAlias type="com.b2c.dtms.domain.DtmsMessage" alias="dtmsMessage" />
<typeAlias type="com.b2c.dtms.domain.DtmsMessageException"
alias="dtmsMessageException" />
<typeAlias type="com.b2c.dtms.domain.DtmsMessageConfig"
alias="dtmsMessageConfig" />
<typeAlias type="com.b2c.dtms.domain.DtmsMessageHistory"
alias="dtmsMessageHistory" />
</typeAliases>
<typeHandlers>
<typeHandler handler="com.b2c.dtms.dao.typehandler.LongToDate"
javaType="java.util.Date" />
</typeHandlers>
<!-- 映射文件路径 -->
<mappers>
<mapper resource="sqlmap/OrderMaxid.xml" />
<mapper resource="sqlmap/dtms/DtmsMessage.xml" />
<mapper resource="sqlmap/dtms/DtmsMessageException.xml" />
<mapper resource="sqlmap/dtms/DtmsMessageConfig.xml" />
<mapper resource="sqlmap/dtms/DtmsMessageHistory.xml" />
</mappers>
</configuration>