crud/main/resources/mybatis-config.xml

34 lines
1.3 KiB
XML
Raw Normal View History

2023-05-24 15:00:58 +00:00
<?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>