代码拉取完成,页面将自动刷新
datasource-spring-boot-starter. AbstractRoutingDataSource dynamic datasource for springboot,Multiple &Routing&Sharding&RW&Master/Slave https://github.com/zengfr/datasource-spring-boot-starter/
Repositories Central Sonatype Mvnrepository
Maven Dependency:
Not Use Spring Boot:
<dependency>
<groupId>com.github.zengfr.project</groupId>
<artifactId>datasource</artifactId>
<version>0.0.1</version>
<dependency>
Use Spring Boot :
<dependency>
<groupId>com.github.zengfr.project</groupId>
<artifactId>datasource-spring-boot-starter</artifactId>
<version>0.0.1</version>
<dependency>
Gradle:
compile group: 'com.github.zengfr.project', name: 'datasource', version: '0.0.1'
compile group: 'com.github.zengfr.project', name: 'datasource-spring-boot-starter', version: '0.0.1'
<dbconfig>
<dbsets>
<dbset name="productdb" provider="SqlServer">
<db name="productdbm" dbtype="Master" shardid="0" />
<db name="productdbs" dbtype="Slave" shardid="0" />
</dbset>
<dbset name="orderdb" provider="MySql" shardstrategy="">
<db name="orderdb_S0_W" dbtype="Master" shardid="0" />
<db name="orderdb_S1_W" dbtype="Master" shardid="1" />
<db name="orderdb_S2_W" dbtype="Master" shardid="2" />
<db name="orderdb_S3_W" dbtype="Master" shardid="3" />
<db name="orderdb00_R" dbtype="Slave" shardid="0" />
<db name="orderdb01_R" dbtype="Slave" shardid="1" />
<db name="orderdb02_R" dbtype="Slave" shardid="2" />
<db name="orderdb03_R" dbtype="Slave" shardid="3" />
<db name="orderdb03_R1" dbtype="Slave" shardid="3" />
<db name="orderdb03_R2" dbtype="Slave" shardid="3" />
</dbset>
</dbsets>
</dbconfig>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。