You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
3.5 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<?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>
<!-->
<properties resource="db.properties"/>
<!-->
<typeAliases>
<typeAlias type="java.lang.String" alias="String"/>
<typeAlias type="java.lang.Integer" alias="Integer"/>
<typeAlias type="java.lang.Long" alias="Long"/>
<typeAlias type="java.util.List" alias="List"/>
<typeAlias type="java.util.Map" alias="Map"/>
</typeAliases>
<environments default="development">
<environment id="development">
<transactionManager type="JDBC"></transactionManager>
<dataSource type="POOLED">
<!-- dataSource type ="com.connor.rac.autoprocess.pooled.CNPooledDataSource" -->
<property name="driver" value="${jdbc.driver}"></property>
<property name="url" value="${jdbc.url}"></property>
<property name="username" value="${jdbc.username}"></property>
<property name="password" value="${jdbc.password}"></property>
<!--最大的活动连接数活动连接就是正在与数据库交互的连接默认是10!-->
<property name="poolMaximumIdleConnections" value="1"/>
<!--空闲连接数就是没有处理请求的连接默认是5!-->
<property name="poolMaximumActiveConnections" value="2"/>
<!--在被强制返回之前连接池中被检查的时间默认值为20000毫秒!-->
<property name="poolMaximumCheckoutTime" value="10000"/>
<!--给连接池一个打印日志状态机会的低层次设置,还有重新尝试获取连接,这些情况往往会需要很长时间。
为了避免连接池没有配置时静默失败。默认值20000毫秒!-->
<property name="poolTimeToWait" value="10000"/>
<!-- 发送到数据的侦测查询用来验证连接是否正常工作并且准备接受请求。默认为“NO PING QUERY SET”
这会引起许多数据库驱动连接由一个错误信息而导致失败!-->
<property name="poolPingQuery" value="SELECT 1 FROM DUAL"/>
<!--这是开启或禁用侦测查询如果开启必须用一个合法的SQL语句设置poolPingQuery属性默认值为false !-->
<property name="poolPingEnabled" value="true"/>
<!--用来配置poolPingQuery多长时间被调用一次。可以被设置匹配标准的数据库链接超时时间
来避免不必要的侦测。默认值0也就是所有链接每一时刻都被侦测到但仅仅当poolPingEnabled为true时适用!-->
<property name="poolPingConnectionsNotUsedFor" value="0"/>
</dataSource>
</environment>
</environments>
<mappers>
<mapper resource="com/connor/xd/bommanager/CNAutocodeManager.xml"></mapper>
</mappers>
<!-- <plugins>
&lt;!&ndash; com.github.pagehelper为PageHelper类所在包名 &ndash;&gt;
<plugin interceptor="com.github.pagehelper.PageHelper">
&lt;!&ndash; 设置数据库类型 Oracle,Mysql,MariaDB,SQLite,Hsqldb,PostgreSQL六种数据库&ndash;&gt;
<property name="dialect" value="mysql"/>
</plugin>
</plugins>-->
</configuration>