-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigurationMySql.xml
27 lines (25 loc) · 998 Bytes
/
ConfigurationMySql.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
<?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>
<plugins>
<plugin interceptor="com.github.edwin.mybatis.plugin.RowboundInterceptor">
<property name="dialectClass" value="com.github.edwin.mybatis.dialect.MySQLDialect"/>
</plugin>
</plugins>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"/>
<dataSource type="UNPOOLED">
<property name="driver" value="com.mysql.jdbc.Driver"/>
<property name="url" value="jdbc:mysql://localhost:33307/test"/>
<property name="username" value="root"/>
<property name="password" value=""/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="TestMapper.xml" />
</mappers>
</configuration>