feat: 集成 ShardingSphere-JDBC 最新版,分表存储小说内容(默认关闭)

默认关闭分库分表,通过配置属性 shardingsphere.enabled 来开启
This commit is contained in:
xiongxiaoyang
2022-06-03 20:57:23 +08:00
parent bf60ba30c9
commit 5d0ac13ae6
2 changed files with 46 additions and 0 deletions

View File

@ -21,6 +21,7 @@
<elasticsearch.version>8.2.0</elasticsearch.version>
<xxl-job.version>2.3.1</xxl-job.version>
<sentinel.version>1.8.4</sentinel.version>
<shardingsphere-jdbc.version>5.1.1</shardingsphere-jdbc.version>
</properties>
<dependencies>
<dependency>
@ -137,6 +138,13 @@
<version>${sentinel.version}</version>
</dependency>
<!-- ShardingSphere-JDBC -->
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
<version>${shardingsphere-jdbc.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>