All Downloads are FREE. Search and download functionalities are using the official Maven repository.

on024.java-autotest-tool.0.1.4.source-code.framework-mybatis-config.xml Maven / Gradle / Ivy

There is a newer version: 0.2.2
Show newest version
<?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>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy