码迷,mamicode.com
首页 > 其他好文 > 详细

mybatis配置文件

时间:2020-02-11 19:29:02      阅读:83      评论:0      收藏:0      [点我收藏+]

标签:user   conf   err   type   bat   source   nts   word   配置文件   

mybatis-config.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>
<properties resource="jdbc.properties"></properties>

<typeAliases>
<package name="com.blb.dto"/>
</typeAliases>



<environments default="mysql">
<environment id="mysql">
<transactionManager type="JDBC"></transactionManager>
<dataSource type="POOLED">
<property name="driver" value="${driver}"/>
<property name="url" value="${url}"/>
<property name="username" value="${username}"/>
<property name="password" value="${password}"/>
</dataSource>
</environment>
</environments>


<mappers>
<mapper resource="com/blb/mapper/UserMapper.xml"></mapper>
<mapper resource="com/blb/mapper/RoleMapper.xml"></mapper>
<mapper resource="com/blb/mapper/MenuMapper.xml"></mapper>
<mapper resource="com/blb/mapper/UserRoleMapper.xml"></mapper>
<mapper resource="com/blb/mapper/RoleMenuMapper.xml"></mapper>
</mappers>

</configuration>

mybatis配置文件

标签:user   conf   err   type   bat   source   nts   word   配置文件   

原文地址:https://www.cnblogs.com/Tsugar/p/12296157.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!