txl401

Tmcate 释放数据库连接
让tomcat自己来释放连接,在tomcat的安装目录下面的/conf/context.xml文件的Resource节点里面加入如下语句,问题解决:

removeAbandoned="true" removeAbandonedTimeout="60" logAbandoned="true" validationQuery="select 1 from dual" testOnBorrow="true"

 

分类:

技术点:

相关文章:

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