码迷,mamicode.com
首页 > 数据库 > 详细

SqlMapConfig.xml基本配置

时间:2015-05-08 23:33:03      阅读:238      评论:0      收藏:0      [点我收藏+]

标签:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE configuration PUBLIC "-//ibatis.apache.org//DTD Config 3.0//EN"
"http://ibatis.apache.org/dtd/ibatis-3-config.dtd">
<configuration>
<environments default="environment">
<environment id="environment">
<transactionManager type="JDBC" />
<dataSource type="POOLED">
<property name="driver" value="com.mysql.jdbc.Driver" />
<property name="url"
value="jdbc:mysql://localhost:3306/test" />
<property name="username" value="root" />
<property name="password" value="lu123456" />
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="org/tarena/entity/Dept.xml"></mapper>
</mappers>
</configuration>

SqlMapConfig.xml基本配置

标签:

原文地址:http://www.cnblogs.com/Crow00/p/4489001.html

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