on024.java-autotest-tool.0.1.4.source-code.framework-mybatis-config.xml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-autotest-tool Show documentation
Show all versions of java-autotest-tool Show documentation
This is an integration of autotest tools
<?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="env"> <environment id="env"> <transactionManager type="JDBC" /> <dataSource type="POOLED"> <property name="driver" value="com.mysql.cj.jdbc.Driver" /> <property name="url" value="jdbc:mysql://127.0.0.1:3306/test_record?characterEncoding=UTF8" /> <property name="username" value="root" /> <property name="password" value="1qaz!QAZ" /> </dataSource> </environment> <environment id="site_reldb"> <transactionManager type="MANAGED"> <property name="closeConnection" value="false"/> </transactionManager> <dataSource type="POOLED"> <property name="driver" value="com.mysql.cj.jdbc.Driver" /> <property name="url" value="jdbc:mysql://10.225.72.168:3306/site_reldb?characterEncoding=utf8" /> <property name="username" value="site_reldb_w" /> <property name="password" value="MP3mFMQ7KmOcWhw_iR7X7HtMlQVi7ANS" /> <!--额外其他配置--> <!-- 在任意时间可以存在的活动(也就是正在使用)连接数量,默认值:10 --> <property name="poolMaximumActiveConnections" value="5" /> <!-- 任意时间可能存在的空闲连接数 --> <property name="poolMaximumIdleConnections" value="2" /> <!-- 在被强制返回之前,池中连接被检出(checked out)时间,默认值:20000 毫秒(即 20 秒) --> <property name="poolMaximumCheckoutTime" value="10000" /> <!-- 数据连接等待时间,默认20s --> <property name="poolTimeToWait" value="10" /> </dataSource> </environment> </environments> <!-- mapping 文件路径配置 --> <mappers> <mapper resource="mapping/TestngMapper.xml" /> </mappers> </configuration>