baomidou / dynamic-datasource

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

多主或多从时,健康检查代码有问题 #206

Closed withinfly closed 4 years ago

withinfly commented 4 years ago

Enviroment

JDK Version(required): 1.8

SpringBoot Version(required): 2.1.8.RELEASE

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

druid Version(optional):1.1.9

Describe

源码:MasterSlaveAutoRoutingPlugin.java image

image

除非自己改写MasterSlaveAutoRoutingPlugin.java,

Expected Result:

Actual Result:

Steps to reproduce

huayanYu commented 4 years ago

嗯,自己改写吧。 本来就是一个示例,根据自己需求改写下吧。