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

您好,请问dynamicDataSource如何兼容shardingjdbc的读写分离 ? #690

Closed zhuzhiquan closed 5 days ago

zhuzhiquan commented 5 days ago

Please fill it out carefully, or it will be closed. 请认真填写,不然会直接关闭。

Enviroment

JDK Version(required): 1.8 SpringBoot Version(required): 2.7.18 dynamic-datasource-spring-boot-starter Version(required): 3.2.1 druid Version(optional):

Describe what happened

动态数据源如何支持shardingjdbc的读写分离?目前只看到了支持shardingjdbc下单个数据源的分表策略

Expected Result:

支持hardingjdbc的多个数据源的读写分离

Actual Result:

If there is an exception,or aop invalid,please attach the exception trace:

Just paste your stack trace here!

Steps to reproduce

huayanYu commented 5 days ago

找shardingjdbc