crud/target/classes/mybatis-config.xml

34 lines
1.3 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>
<!-- 引入外部资源文件resourceclasspath路径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>