Mybatis的核心配置模板

Mybatis的mybatis-config.xml配置模板

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
<?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>

<properties resource="">
</properties>

<settings>
<setting name="logImpl" value="STDOUT_LOGGING"/>
</settings>


<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
<property name="driver" value=""/>
<property name="url" value=""/>
<property name="username" value=""/>
<property name="password" value=""/>
</dataSource>
</environment>
</environments>

<mappers>
<mapper resource=""></mapper>
</mappers>
</configuration>
Contents
  1. 1. Mybatis的mybatis-config.xml配置模板
|