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

duruid配置项time-between-connect-error-millis无效 #487

Closed Shawn0Parker closed 1 year ago

Shawn0Parker commented 1 year ago

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.3.5

dynamic-datasource-spring-boot-starter Version(required): 3.4.0

Describe what happened

dynamic-datasource配置druid的time-between-connect-error-millis项无效

Expected Result:

数据源配置:time-between-connect-error-millis: 6000

image

Actual Result:

结果仍然为默认的500

image

Steps to reproduce

启动应用,捕获 DruidDataSource,查看对应该参数timeBetweenConnectErrorMillis的值

发现值仍为druid默认值500

huayanYu commented 1 year ago

1断点调试, 2尝试升级3.5.2

huayanYu commented 1 year ago

等待4.0.0