Home  >  Q&A  >  body text

java - 使用c3p0时出现一个问题,使得项目老是挂掉、( ˇˍˇ )

框架是spring Struts2 mybatis
报错信息如下

是配置的问题?可是同一套配置在多个不同的平台一起运行着啊,只有其中一个会挂掉、、、

ringa_leeringa_lee2718 days ago392

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-18 10:33:00

    Change the value of jdbc.breakAfterAcquireFailure = true in the configuration to false

    reply
    0
  • 黄舟

    黄舟2017-04-18 10:33:00

    Is the pressure experienced by each configuration different? Is there a big difference in database configuration? These will all affect the connection pool. I recommend you a connection pool druid that can monitor SQL.

    reply
    0
  • Cancelreply