提交 | 用户 | 时间
|
fd2207
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
懒 |
2 |
<!DOCTYPE configuration |
|
3 |
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" |
|
4 |
"http://mybatis.org/dtd/mybatis-3-config.dtd"> |
|
5 |
<configuration> |
|
6 |
<!-- 全局参数 --> |
|
7 |
<settings> |
|
8 |
<!-- 使全局的映射器启用或禁用缓存 --> |
|
9 |
<setting name="cacheEnabled" value="true" /> |
|
10 |
<!-- 允许JDBC 支持自动生成主键 --> |
|
11 |
<setting name="useGeneratedKeys" value="true" /> |
|
12 |
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 --> |
|
13 |
<setting name="defaultExecutorType" value="SIMPLE" /> |
|
14 |
<!-- 指定 MyBatis 所用日志的具体实现 --> |
|
15 |
<setting name="logImpl" value="SLF4J" /> |
|
16 |
<!-- 使用驼峰命名法转换字段 --> |
|
17 |
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> --> |
|
18 |
</settings> |
|
19 |
|
|
20 |
</configuration> |