MySQL 8小时问题
时间:2021-07-01 10:21:17
帮助过:2人阅读
bean id="mysql_dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"
p:driverClassName="${driverClassName}"
p:url="${url}"
p:username="${username_mysql}"
p:password="${password}"
p:testOnBorrow="false"
p:testWhileIdle="true"
p:timeBetweenEvictionRunsMillis="27000000"
p:validationQuery="select 1"/>
p:timeBetweenEvictionRunsMillis 以毫秒为单位,时间小于 8 小时,但是这个8小时也是可以在MySQL中通过 interactive-timeout参数进行配置的,所以在配置 p:timeBetweenEvictionRunsMillis,之前先需要知道 interactive-timeout 设置的值
MySQL 8小时问题
标签: