• Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@1483de4 -- timeout at awaitAvailable(


    Caused by: com.mchange.v2.resourcepool.TimeoutException: A client timed out while waiting to acquire a resource from com.mchange.v2.resourcepool.BasicResourcePool@1483de4 -- timeout at awaitAvailable()

    把spring-dao.xml中

    <property name="maxPoolSize" value="30"/>
    改成
    <property name="maxPoolSize" value="40"/>
    运行正常,不抛出异常
    再重新改回
    <property name="maxPoolSize" value="30"/>
    运行正常,没有异常

    有可能是多运行几次,就不会有异常了?不能解决

    解决办法
    将url加上autoReconnect=true&rewriteBatchedStatements=TRUE
    jdbc.url=jdbc:mysql://127.0.0.1:3306/seckill?useUnicode=true&characterEncoding=utf8&autoReconnect=true&rewriteBatchedStatements=TRUE
     
     
     
  • 相关阅读:
    karto 资料
    底盘运动学
    QT中搜索文件列表
    Qt中引入boost库
    AGV调度理论链接
    qt开发杂记
    C++代码读取ping的网络延时
    结构体解析数据
    QJson 的简单使用
    Vue中问题总结 与未解决问题总结
  • 原文地址:https://www.cnblogs.com/songsongblue/p/10039139.html
Copyright © 2020-2023  润新知