34 lines
1.3 KiB
XML
34 lines
1.3 KiB
XML
|
<?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>
|
|||
|
<!-- 引入外部资源文件,resource:classpath路径,url:绝对路径(不建议使用) -->
|
|||
|
<properties resource="jdbc.properties"></properties>
|
|||
|
<!--别名-->
|
|||
|
<typeAliases>
|
|||
|
<package name="com.domain"></package>
|
|||
|
<!-- <typeAlias type="" alias=""></typeAlias>-->
|
|||
|
</typeAliases>
|
|||
|
<!--注册类型处理器-->
|
|||
|
<typeHandlers>
|
|||
|
<typeHandler handler="com.handler.DateTypeHandler"></typeHandler>
|
|||
|
</typeHandlers>
|
|||
|
|
|||
|
<!--<environments default="development">
|
|||
|
<environment id="development">
|
|||
|
<transactionManager type="JDBC"/>
|
|||
|
<dataSource type="POOLED">
|
|||
|
<property name="driver" value="${jdbc.driver}"/>
|
|||
|
<property name="url" value="${jdbc.url}"/>
|
|||
|
<property name="username" value="${jdbc.username}"/>
|
|||
|
<property name="password" value="${jdbc.password}"/>
|
|||
|
</dataSource>
|
|||
|
</environment>
|
|||
|
|
|||
|
</environments>-->
|
|||
|
<!--扫描mapper-->
|
|||
|
<!--<mappers>
|
|||
|
<mapper class="com.mapper.RoleMapper"></mapper>
|
|||
|
<mapper class="com.mapper.UserMapper"></mapper>
|
|||
|
</mappers>-->
|
|||
|
</configuration>
|