baomidou / dynamic-datasource

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

Druid的1.2.12之后的版本新增了socket-timeout和connect-timeout配置 #455

Closed reixuemin closed 1 year ago

reixuemin commented 2 years ago

如题,这个需要插件修改吗?还是自动就支持的?

huayanYu commented 2 years ago

需要你来提交PR

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新增属性的支持?

huayanYu commented 1 year ago

3.6.0