2019年1月8日

Mysql重连错误

摘要: 1.2 解决方法 - 如果使用的是JDBC,在JDBC URL上添加?autoReconnect=true,如: - 如果是在Spring中使用DBCP连接池,在定义datasource增加属性validationQuery和testOnBorrow,如: - 如果是在Spring中使用c3p0连接 阅读全文

posted @ 2019-01-08 14:38 airycode 阅读(392) 评论(0) 推荐(0) 编辑

导航