MyBatis核心配置文件模版

时间:2022-03-14 05:14:08
 
<?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>
  <environments default="">
<environment id="">
<transactionManager type="JDBC"/>
<dataSource type="POOLED">
   <property name="driver" value="com.mysql.jdbc.Driver"/>
   <property name="url" value="jdbc:mysql://localhost:3306/db" />
   <property name="username" value="root"/>
   <property name="password" value="xxx"/>
</dataSource>
</environment>
</environments>
</configuration>