dchp基本配置(maxidle maxActive removeAbandoned removeAbandonedTimeout)

来源:互联网 发布:为什么要云计算 编辑:程序博客网 时间:2024/06/07 00:02
<bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource"><property name="driverClassName" value="com.mysql.jdbc.Driver"></property><property name="url" value="jdbc:mysql://localhost:3306/fiss"></property><property name="username" value="root"></property><property name="password" value="90210"></property><property name="maxActive" value="100" ></property><property name="maxIdle" value="30" ></property><property name="maxWait" value="10000" ></property><property name="removeAbandoned" value="true"></property><property name="removeAbandonedTimeout" value="180"></property></bean>


 

 

扔到hibernate配置文件中的东西  具体参数作用请自行百度

http://www.iteye.com/topic/772507