摘要: 使用springboot 线程池连接MySQL时,mysql数据库wait_timeout 为8个小时,所以程序第二天发现报错,在url配置了 autoReconnect=true 也不行,查询配置以下 #验证连接的有效性 spring.datasource.test-while-idle=true 阅读全文
posted @ 2019-07-15 10:45 ergexy 阅读(9316) 评论(0) 推荐(0) 编辑