baomidou / dynamic-datasource

dynamic datasource for springboot 多数据源 动态数据源 主从分离 读写分离 分布式事务
https://www.kancloud.cn/tracy5546/dynamic-datasource/2264611
Apache License 2.0
4.76k stars 1.2k forks source link

Druid1.2.12之后的版本新增了socket-timeout和connect-timeout配置, 缺省值为10秒, 详情见com.alibaba.druid.pool.DruidAbstractDataSource。 若有超过10秒以上的复杂SQL查询, 会抛出异常: ### Cause: java.sql.SQLRecoverableException: IO 错误: Socket read timed out #461

Closed glf14811 closed 1 year ago

glf14811 commented 2 years ago
    Druid1.2.12之后的版本新增了socket-timeout和connect-timeout配置, 缺省值为10秒, 详情见com.alibaba.druid.pool.DruidAbstractDataSource。 若有超过10秒以上的复杂SQL查询, 会抛出异常: ### Cause: java.sql.SQLRecoverableException: IO 错误: Socket read timed out

; IO 错误: Socket read timed out; nested exception is java.sql.SQLRecoverableException: IO 错误: Socket read timed out 。 com.baomidou.dynamic.datasource.spring.boot.autoconfigure.druid.DruidConfig 中需增加对Druid1.2.12新增属性的支持?

Originally posted by @glf14811 in https://github.com/baomidou/dynamic-datasource-spring-boot-starter/issues/455#issuecomment-1307341417

huayanYu commented 1 year ago

3.6.0