shardingsphere,shardingjdbc按年月時間分庫,定時創建庫表
- 不使用Spring
- 引入Maven依賴
- 基于Java編碼的規則配置
- 基于Yaml的規則配置
- 使用原生JDBC
- 使用Spring
- 引入Maven依賴
- 基于Spring boot的規則配置
- 基于Spring命名空間的規則配置
- 在Spring中使用DataSource
不使用Spring
引入Maven依賴
<dependency> <groupId>org.apache.shardingsphere</groupId> <artifactId>sharding-jdbc-core</artifactId> <version>${sharding-sphere.version}</version> </dependency>
今天寫不完了
- 不使用Spring
- 引入Maven依賴
- 基于Java編碼的規則配置
- 基于Yaml的規則配置
- 使用原生JDBC
- 使用Spring
- 引入Maven依賴
- 基于Spring boot的規則配置
- 基于Spring命名空間的規則配置
- 在Spring中使用DataSource
不使用Spring
引入Maven依賴
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-core</artifactId>
<version>${sharding-sphere.version}</version>
</dependency>
- 不使用Spring
- 引入Maven依賴
- 基于Java編碼的規則配置
- 基于Yaml的規則配置
- 使用原生JDBC
- 使用Spring
- 引入Maven依賴
- 基于Spring boot的規則配置
- 基于Spring命名空間的規則配置
- 在Spring中使用DataSource
不使用Spring
引入Maven依賴
<dependency>
<groupId>org.apache.shardingsphere</groupId>
<artifactId>sharding-jdbc-core</artifactId>
<version>${sharding-sphere.version}</version>
</dependency>
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/240369.html
標籤:其他
