首页
登录 | 注册

mybaties配置文件

<?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>
<settings>
<setting name="logImpl" value="LOG4J"/>
</settings>
<!--default和下面的id的名字一样 -->
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"></transactionManager>
<!-- 固定格式连接池 -->
<dataSource type="POOLED">
<!-- 数据库配置信息 -->
<property name="driver" value="com.mysql.jdbc.Driver" />
<property name="url" value="jdbc:mysql://127.0.0.1:3306/my" />
<property name="username" value="root" />
<property name="password" value="" />
</dataSource>
</environment>
</environments>
<mappers>
<!-- 配置文件完整路径 -->
<mapper resource="com/icss/mybaties/Pojo/MybatiesMap.xml" />
<!-- 接受注解的路径要到包名.类名
<mapper class="com.icss.mybaties.Pojo.UserDao"/>  -->

</mappers>
</configuration>


2020 jeepxie.net webmaster#jeepxie.net
10 q. 0.009 s.
京ICP备10005923号