auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/DB_CAS?useUnicode=true&characterEncoding=utf8&autoReconnect=true"
username="root"
password="123456"
maxPoolSize="20"
minPoolSize="20"
initialPoolSize="20"
maxIdleTime="7200"
idleConnectionTestPeriod="3600"
testConnectionOnCheckin="false"
acquireIncrement="20"
acquireRetryAttempts="30"
acquireRetryDelay="1000"
checkoutTimeout="5000"
maxStatements="0"
testConnectionOnCheckout="false"
preferredTestQuery="select 1"
/>
說明=“數據庫連接”
driverClass=“com.mysql.jdbc.Driver”
maxPoolSize=“50”
minPoolSize=“2”
acquireIncrement=“1”
NAME =“JDBC /dbtest”
USER =“根”
密碼=“管理員”
工廠=“org.apache.naming.factory.BeanFactory”
類型=“com.mchange.v2.c3p0.ComboPooledDataSource”
jdbcUrl=“jdbc的:MySQL的://本地主機:3306/dbtestautoReconnect的= TRUE”/>