Created
October 23, 2017 01:06
-
-
Save AhianZhang/94c9ef289b314b4d5ea2c6970c5a3561 to your computer and use it in GitHub Desktop.
配置文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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="jdbc.properties"/> | |
<!-- <typeAliases> | |
<typeAlias alias="Student" type="top.richmanroad.model.Student"/> | |
</typeAliases>--> | |
<typeAliases> | |
<package name="top.richmanroad.model"></package> | |
</typeAliases> | |
<environments default="development"> | |
<environment id="development"> | |
<transactionManager type="JDBC" /> | |
<dataSource type="POOLED"> | |
<property name="driver" value="${jdbc.driverClassName}" /> | |
<property name="url" value="${jdbc.url}" /> | |
<property name="username" value="${jdbc.username}" /> | |
<property name="password" value="${jdbc.password}" /> | |
</dataSource> | |
</environment> | |
</environments> | |
<!--以下注释内容为多种写法,未注释的为最优写法--> | |
<!-- <mappers> | |
<mapper resource="top/richmanroad/mappers/StudentMapper.xml" /> | |
</mappers>--> | |
<!--<mappers> | |
<mapper class="top.richmanroad.mappers.StudentMapper"></mapper> | |
</mappers>--> | |
<mappers> | |
<package name="top.richmanroad.mappers"></package> | |
</mappers> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment