需要在配置文件里加上下面就ok了

<property name=”minEvictableIdleTimeMillis” value=”1800000″ />
<property name=”numTestsPerEvictionRun” value=”3″ />
<property name=”testOnBorrow” value=”true” />
<property name=”testWhileIdle” value=”true” />
<property name=”testOnReturn” value=”true” />
<property name=”validationQuery” value=”SELECT 1″ />

相关文章:

  • 2022-12-23
  • 2021-08-24
  • 2022-12-23
  • 2021-12-05
  • 2021-04-27
  • 2021-10-24
  • 2021-11-30
猜你喜欢
  • 2021-11-21
  • 2022-12-23
  • 2021-05-17
  • 2022-03-11
  • 2021-07-06
  • 2022-12-23
相关资源
相似解决方案