java使用druid连接数据库时出错了,会不停的自动连接,怎么关闭自动连接。
<property name="initialSize" value="${druid.initialSize}"/>
<property name="minIdle" value="${druid.minIdle}"/>
<property name="maxActive" value="${druid.maxActive}"/>
<property name="maxWait" value="${druid.maxWait}"/>
<property name="validationQuery" value="${druid.validationQuery}"/>
<property name="poolPreparedStatements" value="${druid.poolPreparedStatements}"/>
<property name="maxPoolPreparedStatementPerConnectionSize" value="${druid.maxPoolPreparedStatementPerConnectionSize}"/>
<property name="filters" value="${druid.filters}"/>
</bean>
destroy-method="close" 一定要加上
补上消失的一部分。。。