摘要:
动态数据源决策 public class DynamicDataSource extends AbstractRoutingDataSource { @Override protected Object determineCurrentLookupKey() { String datasource 阅读全文
posted @ 2021-11-07 21:11
yydssc
阅读(18)
评论(0)
推荐(0)
摘要:
一、 正常模块配置(具体参考dt模块) 涉及到文件 a. /system/service/config/impl/RegionServiceImpl.java b. /dt/controller/system/RegionController.java c. dt/resources/dev/app 阅读全文
posted @ 2021-11-07 21:11
yydssc
阅读(51)
评论(0)
推荐(0)
摘要:
a、 job/pom.xml b、 /resources/dev/application-dev.yml c、 /job/config/MybatisPlusConfig.java d、 /job/config/DataSourceContextHolder.java e、 /job/config/ 阅读全文
posted @ 2021-11-07 21:09
yydssc
阅读(24)
评论(0)
推荐(0)
摘要:
新建数据库枚举,方便辨识 Mybatis配置 @Getter @AllArgsConstructor public enum DbSourceEnum { /** * 新加坡节点数据库 */ DATA_SOURCE_SG("sqlDataSourceSg","新加坡节点数据库"), /** * 德国 阅读全文
posted @ 2021-11-07 21:09
yydssc
阅读(20)
评论(0)
推荐(0)