You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by ki...@apache.org on 2020/06/18 15:52:51 UTC
[shardingsphere] branch master updated: Update
user-manual/config/spring-namespace (#6119)
This is an automated email from the ASF dual-hosted git repository.
kimmking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git
The following commit(s) were added to refs/heads/master by this push:
new 9c9dab6 Update user-manual/config/spring-namespace (#6119)
9c9dab6 is described below
commit 9c9dab6420540b90434858ddba0216d396661f9b
Author: Liang Zhang <te...@163.com>
AuthorDate: Thu Jun 18 23:52:32 2020 +0800
Update user-manual/config/spring-namespace (#6119)
* remove useless docs
* Add user-manual/config/spring-namespace
* Update user-manual/config/spring-namespace/index
* Update user-manual/config/spring-namespace/encrypt
* Update user-manual/config/spring-namespace/read-write-split
* Update user-manual/config/spring-namespace/sharding
---
.../configuration/spring-boot-starter/_index.cn.md | 46 +--
.../configuration/spring-boot-starter/_index.en.md | 46 +--
.../spring-boot-starter/config-spring-boot.cn.md | 406 ---------------------
.../spring-boot-starter/config-spring-boot.en.md | 405 --------------------
.../spring-boot-starter/encrypt.cn.md | 20 -
.../spring-boot-starter/encrypt.en.md | 20 -
.../spring-boot-starter/governance.cn.md | 5 -
.../spring-boot-starter/governance.en.md | 4 -
.../spring-boot-starter/read-write-split.cn.md | 32 +-
.../spring-boot-starter/read-write-split.en.md | 32 +-
.../spring-boot-starter/replica.cn.md | 4 -
.../spring-boot-starter/replica.en.md | 4 -
.../configuration/spring-boot-starter/shadow.cn.md | 4 -
.../configuration/spring-boot-starter/shadow.en.md | 4 -
.../spring-boot-starter/sharding.cn.md | 49 +--
.../spring-boot-starter/sharding.en.md | 51 +--
.../configuration/spring-namespace/_index.cn.md | 59 +++
.../configuration/spring-namespace/_index.en.md | 59 +++
.../configuration/spring-namespace/encrypt.cn.md | 42 +++
.../configuration/spring-namespace/encrypt.en.md | 42 +++
.../governance.cn.md | 5 -
.../{yaml => spring-namespace}/governance.en.md | 4 -
.../spring-namespace/read-write-split.cn.md | 35 ++
.../spring-namespace/read-write-split.en.md | 34 ++
.../{yaml => spring-namespace}/replica.cn.md | 4 -
.../{yaml => spring-namespace}/replica.en.md | 4 -
.../{yaml => spring-namespace}/shadow.cn.md | 4 -
.../shadow.en.md | 4 -
.../configuration/spring-namespace/sharding.cn.md | 114 ++++++
.../configuration/spring-namespace/sharding.en.md | 114 ++++++
.../configuration/yaml/encrypt.cn.md | 33 --
.../configuration/yaml/encrypt.en.md | 33 --
.../configuration/yaml/governance.cn.md | 5 -
.../configuration/yaml/governance.en.md | 4 -
.../configuration/yaml/read-write-split.cn.md | 38 --
.../configuration/yaml/read-write-split.en.md | 38 --
.../configuration/yaml/replica.cn.md | 4 -
.../configuration/yaml/replica.en.md | 4 -
.../configuration/yaml/shadow.cn.md | 4 -
.../configuration/yaml/shadow.en.md | 4 -
.../configuration/yaml/sharding.cn.md | 65 ----
.../configuration/yaml/sharding.en.md | 67 +---
.../main/resources/META-INF/namespace/encrypt.xsd | 2 +-
.../resources/META-INF/rdb/shardingNamespace.xml | 4 +-
44 files changed, 522 insertions(+), 1439 deletions(-)
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.cn.md
index d279248..e40cf47 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.cn.md
@@ -7,29 +7,7 @@ weight = 3
ShardingSphere-JDBC 提供官方的 Spring Boot Starter,使开发者可以非常便捷的整合 ShardingSphere-JDBC 和 Spring Boot。
-## Spring Boot Start 配置项
-
-### 数据源配置
-
-#### 配置示例
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=root
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=root
-```
-
-#### 配置项说明
+## 数据源配置
```properties
spring.shardingsphere.datasource.names= # 数据源名称,多数据源以逗号分隔
@@ -42,15 +20,7 @@ spring.shardingsphere.datasource.<datasource-name>.password= # 数据库密码
spring.shardingsphere.datasource.<data-source-name>.xxx= # 数据库连接池的其它属性
```
-### 规则配置
-
-#### 配置示例
-
-```properties
-spring.shardingsphere.rules.sharding.xxx=xxx
-```
-
-#### 配置项说明
+## 规则配置
```properties
spring.shardingsphere.rules.<rule-type>.xxx= # 规则配置
@@ -59,16 +29,10 @@ spring.shardingsphere.rules.<rule-type>.xxx= # 规则配置
更多详细配置请参见具体的规则配置部分。
-### 属性配置
-
-#### 配置示例
-
-```properties
-spring.shardingsphere.props.xxx.xxx=xxx
-```
-
-#### 配置项说明
+## 属性配置
```properties
spring.shardingsphere.props.xxx.xxx= # 具体的属性配置
```
+
+详情请参见[属性配置](/cn/user-manual/shardingsphere-jdbc/configuration/props)。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.en.md
index c895e0c..5d7551b 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/_index.en.md
@@ -7,29 +7,7 @@ weight = 3
ShardingSphere-JDBC provides official Spring Boot Starter to make convenient for developers to integrate ShardingSphere-JDBC and Spring Boot.
-## Spring Boot Start Configuration Item
-
-### Data Source Configuration
-
-#### Configuration Example
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=root
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=root
-```
-
-#### Configuration Item Explanation
+## Data Source Configuration
```properties
spring.shardingsphere.datasource.names= # Data source name, multiple data sources are separated by commas
@@ -42,15 +20,7 @@ spring.shardingsphere.datasource.<datasource-name>.password= # Database password
spring.shardingsphere.datasource.<data-source-name>.xxx= # Other properties of database connection pool
```
-### Rule Configuration
-
-#### Configuration Example
-
-```properties
-spring.shardingsphere.rules.sharding.xxx=xxx
-```
-
-#### Configuration Item Explanation
+## Rule Configuration
```properties
spring.shardingsphere.rules.<rule-type>.xxx= # rule configurations
@@ -59,16 +29,10 @@ spring.shardingsphere.rules.<rule-type>.xxx= # rule configurations
Please refer to specific rule configuration for more details.
-### Properties Configuration
-
-#### Configuration Example
-
-```properties
-spring.shardingsphere.props.xxx.xxx=xxx
-```
-
-#### Configuration Item Explanation
+## Properties Configuration
```properties
spring.shardingsphere.props.xxx.xxx= # Properties key and value
```
+
+Please refer to [Properties Configuration](/en/user-manual/shardingsphere-jdbc/configuration/props) for more details about type of algorithm.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.cn.md
deleted file mode 100644
index 6d8aa76..0000000
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.cn.md
+++ /dev/null
@@ -1,406 +0,0 @@
-+++
-title = "Spring Boot配置"
-weight = 3
-+++
-
-## 注意事项
-
-行表达式标识符可以使用`${...}`或`$->{...}`,但前者与Spring本身的属性文件占位符冲突,因此在Spring环境中使用行表达式标识符建议使用`$->{...}`。
-
-## 配置示例
-
-### 数据分片
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### 读写分离
-
-```properties
-spring.shardingsphere.datasource.names=master,slave0,slave1
-
-spring.shardingsphere.datasource.master.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master.url=jdbc:mysql://localhost:3306/master
-spring.shardingsphere.datasource.master.username=root
-spring.shardingsphere.datasource.master.password=
-
-spring.shardingsphere.datasource.slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave0.url=jdbc:mysql://localhost:3306/slave0
-spring.shardingsphere.datasource.slave0.username=root
-spring.shardingsphere.datasource.slave0.password=
-
-spring.shardingsphere.datasource.slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave1.url=jdbc:mysql://localhost:3306/slave1
-spring.shardingsphere.datasource.slave1.username=root
-spring.shardingsphere.datasource.slave1.password=
-
-spring.shardingsphere.rules.master-slave.load-balancers.round_robin.type=ROUND_ROBIN
-spring.shardingsphere.masterslave.name=ms
-spring.shardingsphere.masterslave.master-data-source-name=master
-spring.shardingsphere.masterslave.slave-data-source-names=slave0,slave1
-spring.shardingsphere.masterslave.load-balancer-name=round_robin
-
-spring.shardingsphere.properties.sql.show=true
-```
-
-### 数据加密
-
-```properties
-spring.shardingsphere.datasource.name=ds
-
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://127.0.0.1:3306/encrypt?serverTimezone=UTC&useSSL=false
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=
-spring.shardingsphere.datasource.ds.max-total=100
-
-spring.shardingsphere.encrypt.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.encrypt.encryptors.aes_encryptor.properties.aes.key.value=123456
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.cipher-column=user_encrypt
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.assisted-query-column=user_assisted
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.plain-column=user_decrypt
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.properties.sql.show=true
-spring.shardingsphere.properties.query.with.cipher.column=true
-```
-
-### 数据分片 + 读写分离
-
-```properties
-spring.shardingsphere.datasource.names=master0,master1,master0slave0,master0slave1,master1slave0,master1slave1
-
-spring.shardingsphere.datasource.master0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0.url=jdbc:mysql://localhost:3306/master0
-spring.shardingsphere.datasource.master0.username=root
-spring.shardingsphere.datasource.master0.password=
-
-spring.shardingsphere.datasource.master0slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0slave0.url=jdbc:mysql://localhost:3306/master0slave0
-spring.shardingsphere.datasource.master0slave0.username=root
-spring.shardingsphere.datasource.master0slave0.password=
-spring.shardingsphere.datasource.master0slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0slave1.url=jdbc:mysql://localhost:3306/master0slave1
-spring.shardingsphere.datasource.master0slave1.username=root
-spring.shardingsphere.datasource.master0slave1.password=
-
-spring.shardingsphere.datasource.master1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1.url=jdbc:mysql://localhost:3306/master1
-spring.shardingsphere.datasource.master1.username=root
-spring.shardingsphere.datasource.master1.password=
-
-spring.shardingsphere.datasource.master1slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1slave0.url=jdbc:mysql://localhost:3306/master1slave0
-spring.shardingsphere.datasource.master1slave0.username=root
-spring.shardingsphere.datasource.master1slave0.password=
-spring.shardingsphere.datasource.master1slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1slave1.url=jdbc:mysql://localhost:3306/master1slave1
-spring.shardingsphere.datasource.master1slave1.username=root
-spring.shardingsphere.datasource.master1slave1.password=
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=master$->{user_id % 2}
-
-spring.shardingsphere.sharding.master-slave-rules.ds0.master-data-source-name=master0
-spring.shardingsphere.sharding.master-slave-rules.ds0.slave-data-source-names=master0slave0, master0slave1
-spring.shardingsphere.sharding.master-slave-rules.ds1.master-data-source-name=master1
-spring.shardingsphere.sharding.master-slave-rules.ds1.slave-data-source-names=master1slave0, master1slave1
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### 数据分片 + 数据加密
-
-```properties
-spring.shardingsphere.datasource.names=ds_0,ds_1
-
-spring.shardingsphere.datasource.ds_0.type=com.zaxxer.hikari.HikariDataSource
-spring.shardingsphere.datasource.ds_0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds_0.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_0
-spring.shardingsphere.datasource.ds_0.username=root
-spring.shardingsphere.datasource.ds_0.password=
-
-spring.shardingsphere.datasource.ds_1.type=com.zaxxer.hikari.HikariDataSource
-spring.shardingsphere.datasource.ds_1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds_1.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_1
-spring.shardingsphere.datasource.ds_1.username=root
-spring.shardingsphere.datasource.ds_1.password=
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds_$->{user_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds_$->{0..1}.t_order_$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order_$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds_$->{0..1}.t_order_item_$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item_$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.encrypt-rule.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.sharding.encrypt-rule.encryptors.aes_encryptor.properties.aes.key.value=123456
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.cipher-column=user_encrypt
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.assisted-query-column=user_assisted
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.plain-column=user_decrypt
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### 治理
-
-```properties
-spring.shardingsphere.datasource.names=ds,ds0,ds1
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=org.h2.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://localhost:3306/ds
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=
-
-spring.shardingsphere.sharding.default-data-source-name=ds
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-spring.shardingsphere.sharding.tables.t_order.key-generator.column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-spring.shardingsphere.sharding.tables.t_order_item.key-generator.column=order_item_id
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.orchestration-type=registry_center,config_center,metadata_center
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.instance-type=zookeeper
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.server-lists=localhost:2181
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.namespace=orchestration-spring-boot-sharding-test
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.overwrite=true
-```
-
-### JNDI
-
-以上配置示例中,所有数据源配置均可使用JNDI代替,如对于`数据分片`:
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.jndi-name=java:comp/env/jdbc/ds0
-spring.shardingsphere.datasource.ds1.jndi-name=jdbc/ds1
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-## 配置项说明
-
-### 数据分片
-
-```properties
-spring.shardingsphere.datasource.names= #数据源名称,多数据源以逗号分隔
-
-spring.shardingsphere.datasource.<data-source-name>.type= #数据库连接池类名称
-spring.shardingsphere.datasource.<data-source-name>.driver-class-name= #数据库驱动类名
-spring.shardingsphere.datasource.<data-source-name>.url= #数据库url连接
-spring.shardingsphere.datasource.<data-source-name>.username= #数据库用户名
-spring.shardingsphere.datasource.<data-source-name>.password= #数据库密码
-spring.shardingsphere.datasource.<data-source-name>.xxx= #数据库连接池的其它属性
-
-spring.shardingsphere.sharding.tables.<logic-table-name>.actual-data-nodes= #由数据源名 + 表名组成,以小数点分隔。多个表以逗号分隔,支持inline表达式。缺省表示使用已知数据源与逻辑表名称生成数据节点,用于广播表(即每个库中都需要一个同样的表用于关联查询,多为字典表)或只分库不分表且所有库的表结构完全一致的情况
-
-#分库策略,缺省表示使用默认分库策略,以下的分片策略只能选其一
-
-#用于单分片键的标准分片场景
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.sharding-column= #分片列名称
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.precise-algorithm-class-name= #精确分片算法类名称,用于=和IN。该类需实现PreciseShardingAlgorithm接口并提供无参数的构造器
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.range-algorithm-class-name= #范围分片算法类名称,用于BETWEEN,可选。该类需实现RangeShardingAlgorithm接口并提供无参数的构造器
-
-#用于多分片键的复合分片场景
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.complex.sharding-columns= #分片列名称,多个列以逗号分隔
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.complex.algorithm-class-name= #复合分片算法类名称。该类需实现ComplexKeysShardingAlgorithm接口并提供无参数的构造器
-
-#行表达式分片策略
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.inline.sharding-column= #分片列名称
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.inline.algorithm-expression= #分片算法行表达式,需符合groovy语法
-
-#Hint分片策略
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.hint.algorithm-class-name= #Hint分片算法类名称。该类需实现HintShardingAlgorithm接口并提供无参数的构造器
-
-#分表策略,同分库策略
-spring.shardingsphere.sharding.tables.<logic-table-name>.table-strategy.xxx= #省略
-
-spring.shardingsphere.sharding.key-generators.<key-generator-name>.type= #自增列值生成器类型,缺省表示使用默认自增列值生成器。可使用用户自定义的列值生成器或选择内置类型:SNOWFLAKE/UUID
-spring.shardingsphere.sharding.key-generators.<key-generator-name>.properties.<property-name>= #属性配置, 注意:使用SNOWFLAKE算法,需要配置worker.id与max.tolerate.time.difference.milliseconds属性。若使用此算法生成值作分片值,建议配置max.vibration.offset属性
-
-spring.shardingsphere.sharding.tables.<logic-table-name>.key-generate-strategy.column= #自增列名称,缺省表示不使用自增主键生成器
-spring.shardingsphere.sharding.tables.<logic-table-name>.key-generate-strategy.key-generator-name= #自增列算法名称,缺省表示使用雪花算法
-
-spring.shardingsphere.sharding.binding-tables[0]= #绑定表规则列表
-spring.shardingsphere.sharding.binding-tables[1]= #绑定表规则列表
-spring.shardingsphere.sharding.binding-tables[x]= #绑定表规则列表
-
-spring.shardingsphere.sharding.broadcast-tables[0]= #广播表规则列表
-spring.shardingsphere.sharding.broadcast-tables[1]= #广播表规则列表
-spring.shardingsphere.sharding.broadcast-tables[x]= #广播表规则列表
-
-spring.shardingsphere.sharding.default-data-source-name= #未配置分片规则的表将通过默认数据源定位
-spring.shardingsphere.sharding.default-database-strategy.xxx= #默认数据库分片策略,同分库策略
-spring.shardingsphere.sharding.default-table-strategy.xxx= #默认表分片策略,同分表策略
-
-spring.shardingsphere.rules.master-slave.load-balancers.<load-balancer-name>.type=#
-
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.master-data-source-name= #详见读写分离部分
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[0]= #详见读写分离部分
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[1]= #详见读写分离部分
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[x]= #详见读写分离部分
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balance-algorithm-class-name= #详见读写分离部分
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balancer-name= #详见读写分离部分
-
-spring.shardingsphere.properties.sql.show= #是否开启SQL显示,默认值: false
-spring.shardingsphere.properties.executor.size= #工作线程数量,默认值: CPU核数
-```
-
-### 读写分离
-
-```properties
-#省略数据源配置,与数据分片一致
-
-spring.shardingsphere.rules.master-slave.load-balancers.<load-balancer-name>.type=#
-
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.master-data-source-name= #主库数据源名称
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[0]= #从库数据源名称列表
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[1]= #从库数据源名称列表
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[x]= #从库数据源名称列表
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balance-algorithm-class-name= #从库负载均衡算法类名称。该类需实现MasterSlaveLoadBalanceAlgorithm接口且提供无参数构造器
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balancer-name= #从库负载均衡算法名称
-
-spring.shardingsphere.properties.sql.show= #是否开启SQL显示,默认值: false
-spring.shardingsphere.properties.executor.size= #工作线程数量,默认值: CPU核数
-spring.shardingsphere.properties.check.table.metadata.enabled= #是否在启动时检查分表元数据一致性,默认值: false
-```
-
-### 数据加密
-```properties
-#省略数据源配置,与数据分片一致
-
-spring.shardingsphere.encrypt.encryptors.<encrypt-algorithm-name>.type= #加解密算法类型,可自定义或选择内置类型:MD5/AES
-spring.shardingsphere.encrypt.encryptors.<encrypt-algorithm-name>.properties.<property-name>= #属性配置, 注意:使用 AES 加密算法,需要配置 AES 加密算法的 KEY 属性:aes.key.value
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.cipher-column= #存储密文的字段
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.assisted-query-column= #辅助查询字段,针对 QueryAssistedEncryptAlgorithm 类型的加解密算法进行辅助查询
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.plain-column= #存储明文的字段
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.encryptor-name= #加密算法名字
-```
-### 治理
-
-```properties
-#省略数据源、数据分片、读写分离和数据加密配置
-
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.orchestration-type= #治理类型,例如config_center/registry_center/metadata_center
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.instance-type= #配置/注册/元数据中心实例类型。如:zookeeper
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.server-lists= #连接注册/配置/元数据中心服务器的列表。包括IP地址和端口号。多个地址用逗号分隔。如: host1:2181,host2:2181
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.namespace= #注册/配置/元数据中心的命名空间
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.overwrite=true #本地配置是否覆盖配置中心配置。如果可覆盖,每次启动都以本地配置为准
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.digest= #连接配置/注册/元数据中心的权限令牌。缺省为不需要权限验证
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.operation-timeout-milliseconds= #操作超时的毫秒数,默认500毫秒
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.max-retries= #连接失败后的最大重试次数,默认3次
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.retry-interval-milliseconds= #重试间隔毫秒数,默认500毫秒
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.time-to-live-seconds= #临时节点存活秒数,默认60秒
-```
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.en.md
deleted file mode 100644
index 70d69da..0000000
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/config-spring-boot.en.md
+++ /dev/null
@@ -1,405 +0,0 @@
-+++
-title = "Spring Boot Configuration"
-weight = 3
-+++
-
-## Attention
-
-Inline expression identifier can use `${...}` or `$->{...}`, but `${...}` is conflict with spring placeholder of properties, so use `$->{...}` on spring environment is better.
-
-## Configuration Example
-
-### Data Sharding
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### Read-Write Split
-
-```properties
-spring.shardingsphere.datasource.names=master,slave0,slave1
-
-spring.shardingsphere.datasource.master.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master.url=jdbc:mysql://localhost:3306/master
-spring.shardingsphere.datasource.master.username=root
-spring.shardingsphere.datasource.master.password=
-
-spring.shardingsphere.datasource.slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave0.url=jdbc:mysql://localhost:3306/slave0
-spring.shardingsphere.datasource.slave0.username=root
-spring.shardingsphere.datasource.slave0.password=
-
-spring.shardingsphere.datasource.slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave1.url=jdbc:mysql://localhost:3306/slave1
-spring.shardingsphere.datasource.slave1.username=root
-spring.shardingsphere.datasource.slave1.password=
-
-spring.shardingsphere.masterslave.name=ms
-spring.shardingsphere.masterslave.master-data-source-name=master
-spring.shardingsphere.masterslave.slave-data-source-names=slave0,slave1
-spring.shardingsphere.masterslave.load-balancer-name=round_robin
-
-spring.shardingsphere.properties.sql.show=true
-```
-### data encryption
-
-```properties
-spring.shardingsphere.datasource.name=ds
-
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://127.0.0.1:3306/encrypt?serverTimezone=UTC&useSSL=false
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=
-spring.shardingsphere.datasource.ds.max-total=100
-
-spring.shardingsphere.encrypt.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.encrypt.encryptors.aes_encryptor.properties.aes.key.value=123456
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.cipher-column=user_encrypt
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.assisted-query-column=user_assisted
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.plain-column=user_decrypt
-spring.shardingsphere.encrypt.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.properties.sql.show=true
-spring.shardingsphere.properties.query.with.cipher.column=true
-```
-
-### Data Sharding + Read-Write Split
-
-```properties
-spring.shardingsphere.datasource.names=master0,master1,master0slave0,master0slave1,master1slave0,master1slave1
-
-spring.shardingsphere.datasource.master0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0.url=jdbc:mysql://localhost:3306/master0
-spring.shardingsphere.datasource.master0.username=root
-spring.shardingsphere.datasource.master0.password=
-
-spring.shardingsphere.datasource.master0slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0slave0.url=jdbc:mysql://localhost:3306/master0slave0
-spring.shardingsphere.datasource.master0slave0.username=root
-spring.shardingsphere.datasource.master0slave0.password=
-spring.shardingsphere.datasource.master0slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master0slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master0slave1.url=jdbc:mysql://localhost:3306/master0slave1
-spring.shardingsphere.datasource.master0slave1.username=root
-spring.shardingsphere.datasource.master0slave1.password=
-
-spring.shardingsphere.datasource.master1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1.url=jdbc:mysql://localhost:3306/master1
-spring.shardingsphere.datasource.master1.username=root
-spring.shardingsphere.datasource.master1.password=
-
-spring.shardingsphere.datasource.master1slave0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1slave0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1slave0.url=jdbc:mysql://localhost:3306/master1slave0
-spring.shardingsphere.datasource.master1slave0.username=root
-spring.shardingsphere.datasource.master1slave0.password=
-spring.shardingsphere.datasource.master1slave1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master1slave1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master1slave1.url=jdbc:mysql://localhost:3306/master1slave1
-spring.shardingsphere.datasource.master1slave1.username=root
-spring.shardingsphere.datasource.master1slave1.password=
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=master$->{user_id % 2}
-
-spring.shardingsphere.sharding.master-slave-rules.ds0.master-data-source-name=master0
-spring.shardingsphere.sharding.master-slave-rules.ds0.slave-data-source-names=master0slave0, master0slave1
-spring.shardingsphere.sharding.master-slave-rules.ds1.master-data-source-name=master1
-spring.shardingsphere.sharding.master-slave-rules.ds1.slave-data-source-names=master1slave0, master1slave1
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### Data Sharding + data encryption
-
-```properties
-spring.shardingsphere.datasource.names=ds_0,ds_1
-
-spring.shardingsphere.datasource.ds_0.type=com.zaxxer.hikari.HikariDataSource
-spring.shardingsphere.datasource.ds_0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds_0.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_0
-spring.shardingsphere.datasource.ds_0.username=root
-spring.shardingsphere.datasource.ds_0.password=
-
-spring.shardingsphere.datasource.ds_1.type=com.zaxxer.hikari.HikariDataSource
-spring.shardingsphere.datasource.ds_1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds_1.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_1
-spring.shardingsphere.datasource.ds_1.username=root
-spring.shardingsphere.datasource.ds_1.password=
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds_$->{user_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds_$->{0..1}.t_order_$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order_$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds_$->{0..1}.t_order_item_$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item_$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.encrypt-rule.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.sharding.encrypt-rule.encryptors.aes_encryptor.properties.aes.key.value=123456
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.cipher-column=user_encrypt
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.assisted-query-column=user_assisted
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.plain-column=user_decrypt
-spring.shardingsphere.sharding.encrypt-rule.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-### Orchestration
-
-```properties
-spring.shardingsphere.datasource.names=ds,ds0,ds1
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=org.h2.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://localhost:3306/ds
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=
-
-spring.shardingsphere.sharding.default-data-source-name=ds
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-spring.shardingsphere.sharding.tables.t_order.key-generator.column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-spring.shardingsphere.sharding.tables.t_order_item.key-generator.column=order_item_id
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.orchestration-type=registry_center,config_center,metadata_center
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.instance-type=zookeeper
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.server-lists=localhost:2181
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.namespace=orchestration-spring-boot-sharding-test
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.overwrite=true
-```
-
-### JNDI
-In the above configuration example, all datasource configurations can be replaced with JNDI, such as `Data Sharding`:
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.jndi-name=java:comp/env/jdbc/ds0
-spring.shardingsphere.datasource.ds1.jndi-name=jdbc/ds1
-
-spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..1}
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order.table-strategy.inline.algorithm-expression=t_order$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..1}
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
-spring.shardingsphere.sharding.tables.t_order_item.table-strategy.inline.algorithm-expression=t_order_item$->{order_id % 2}
-
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.sharding.default-database-strategy.inline.sharding-column=user_id
-spring.shardingsphere.sharding.default-database-strategy.inline.algorithm-expression=ds$->{user_id % 2}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-```
-
-## Configuration Item Explanation
-
-### Data Sharding
-
-```properties
-spring.shardingsphere.datasource.names= #Data source name; multiple data sources are separated by commas
-
-spring.shardingsphere.datasource.<data-source-name>.type= #Database connection pool type name
-spring.shardingsphere.datasource.<data-source-name>.driver-class-name= #Database driver class name
-spring.shardingsphere.datasource.<data-source-name>.url= #Database url connection
-spring.shardingsphere.datasource.<data-source-name>.username= #Database username
-spring.shardingsphere.datasource.<data-source-name>.password= #Database password
-spring.shardingsphere.datasource.<data-source-name>.xxx= #Other properties of database connection pool
-
-spring.shardingsphere.sharding.tables.<logic-table-name>.actual-data-nodes= #It is consisted of data source name + table name, separated by decimal points; multiple tables are separated by commas and support inline expressions; default means using existing data sources and logic table names to generate data nodes; it can be applied in broadcast tables (each database needs a same table for relevance query, dictionary table mostly) or the situation with sharding database but without shardi [...]
-
-#Database sharding strategy; default means using default database sharding strategy; it can only choose one of the following sharding strategies
-
-#It is applied in standard sharding situation of single-sharding key
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.sharding-column= #Sharding column name
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.precise-algorithm-class-name= #Precise algorithm class name, applied in = and IN; the class needs to implement PreciseShardingAlgorithm interface and provide parameter-free constructor
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.standard.range-algorithm-class-name= #Range sharding algorithm class name, applied in BETWEEN, optional; the class should implement RangeShardingAlgorithm interface and provide parameter-free constructor
-
-#It is applied in complex sharding situations with multiple sharding keys
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.complex.sharding-columns= #Sharding column name, with multiple columns separated by commas
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.complex.algorithm-class-name= #Complex sharding algorithm class name; the class needs to implement ComplexKeysShardingAlgorithm interface and provide parameter-free constructor
-
-#Inline expression sharding strategy
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.inline.sharding-column= #Sharding column name
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.inline.algorithm-expression= #Inline expression of sharding algorithm, which needs to conform to groovy statements
-
-#Hint Sharding Strategy
-spring.shardingsphere.sharding.tables.<logic-table-name>.database-strategy.hint.algorithm-class-name= #Hint algorithm class name; the class needs to implement HintShardingAlgorithm interface and provide parameter-free constructor
-
-#Table sharding strategy, same as database sharding strategy
-spring.shardingsphere.sharding.tables.<logic-table-name>.table-strategy.xxx= #Omitted
-
-spring.shardingsphere.sharding.key-generators.snowflake.type= #Auto-increament key generator type; default means using default auto-increament key generator; user defined generator or internal generator (SNOWFLAKE, UUID) can both be selected
-spring.shardingsphere.sharding.key-generators.snowflake.properties.<property-name>= #Properties, Notice: when use SNOWFLAKE, `worker.id` and `max.tolerate.time.difference.milliseconds` for `SNOWFLAKE` need to be set. To use the generated value of this algorithm as sharding value, it is recommended to configure `max.vibration.offset`
-
-spring.shardingsphere.sharding.tables.<logic-table-name>.key-generate-strategy.column= #Auto-increment column name; default means not using auto-increment key generator
-spring.shardingsphere.sharding.tables.<logic-table-name>.key-generate-strategy.key-generator-name= #Auto-increment algorithm name; default means use snowflake algorithm
-
-spring.shardingsphere.sharding.binding-tables[0]= #Binding table rule list
-spring.shardingsphere.sharding.binding-tables[1]= #Binding table rule list
-spring.shardingsphere.sharding.binding-tables[x]= #Binding table rule list
-
-spring.shardingsphere.sharding.broadcast-tables[0]= #Broadcast table rule list
-spring.shardingsphere.sharding.broadcast-tables[1]= #Broadcast table rule list
-spring.shardingsphere.sharding.broadcast-tables[x]= #Broadcast table rule list
-
-spring.shardingsphere.sharding.default-data-source-name= #Tables without sharding rules will be located through default data source
-spring.shardingsphere.sharding.default-database-strategy.xxx= #Default database sharding strategy
-spring.shardingsphere.sharding.default-table-strategy.xxx= #Default table sharding strategy
-
-spring.shardingsphere.rules.master-slave.load-balancers.<load-balancer-name>.type=#
-
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.master-data-source-name= #Refer to read-write split part for more details
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[0]= #Refer to read-write split part for more details
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[1]= #Refer to read-write split part for more details
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[x]= #Refer to read-write split part for more details
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balance-algorithm-class-name= #Refer to read-write split part for more details
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balancer-name= #Refer to read-write split part for more details
-
-spring.shardingsphere.properties.sql.show= #Show SQL or not; default value: false
-spring.shardingsphere.properties.executor.size= #Executing thread number; default value: CPU core number
-```
-
-### Read-Write Split
-
-```properties
-#Omit data source configurations; keep it consistent with data sharding
-
-spring.shardingsphere.rules.master-slave.load-balancers.<load-balancer-name>.type=#
-
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.master-data-source-name= #Data source name of master database
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[0]= #Data source name list of slave database
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[1]= #Data source name list of slave database
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.slave-data-source-names[x]= #Data source name list of slave database
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balance-algorithm-class-name= #Load balance algorithm class name; the class needs to implement MasterSlaveLoadBalanceAlgorithm interface and provide parameter-free constructor
-spring.shardingsphere.sharding.master-slave-rules.<master-slave-data-source-name>.load-balancer-name= #Load balance algorithm class of slave database; optional value: ROUND_ROBIN and RANDOM; if there is load-balance-algorithm-class-name, the configuration can be omitted
-
-spring.shardingsphere.properties.sql.show= #Show SQL or not; default value: false
-spring.shardingsphere.properties.executor.size= #Executing thread number; default value: CPU core number
-spring.shardingsphere.properties.check.table.metadata.enabled= #Whether to check meta-data consistency of sharding table when it initializes; default value: false
-```
-
-### data encryption
-
-```properties
-#Omit data source configurations; keep it consistent with data sharding
-
-spring.shardingsphere.encrypt.encryptors.<encrypt-algorithm-name>.type= #Type of encrypt algorithm,use user-defined ones or built-in ones, e.g. MD5/AES
-spring.shardingsphere.encrypt.encryptors.<encrypt-algorithm-name>.properties.<property-name>= #Properties, Notice: when use AES encrypt algorithm, `aes.key.value` for AES encrypt algorithm need to be set
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.cipher-column= #Cipher column name
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.assisted-query-column= #AssistedColumns for query,when use QueryAssistedEncryptAlgorithm, it can help query encrypted data
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.plain-column= #Plain column name
-spring.shardingsphere.encrypt.tables.<table-name>.columns.<logic-column-name>.encryptor-name= #Encrypt algorithm name
-```
-
-### Orchestration
-
-```properties
-#Omit data source, data sharding, read-write split and data encryption configurations
-
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.orchestration-type= The type of orchestration center: config_center or registry_center or metadata_center
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.instance-type= #Center instance type. Example:zookeeper#Registry center type. Example:zookeeper
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.server-lists= #The list of servers that connect to registry center, including IP and port number; use commas to separate
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.namespace= #Center namespace
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.overwrite= #Whether to overwrite local configurations with config center configurations; if it can, each initialization should refer to local configurations
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.digest= #The token that connects to the center; default means there is no need for authentication
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.operation-timeout-milliseconds= #The millisecond number for operation timeout; default value: 500 milliseconds
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.max-retries= #Maximum retry time after failing; default value: 3 times
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.retry-interval-milliseconds= #Interval time to retry; default value: 500 milliseconds
-spring.shardingsphere.orchestration.spring_boot_ds_sharding.properties.time-to-live-seconds= #Living time of temporary nodes; default value: 60 seconds
-```
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.cn.md
index b14a5ec..b019edd 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.cn.md
@@ -3,26 +3,6 @@ title = "数据加密"
weight = 3
+++
-## 配置示例
-
-```properties
-spring.shardingsphere.datasource.names=ds
-
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://localhost:3306/ds
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=root
-
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.cipher-column=encrypt_user
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.assisted-query-column=assisted_user
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.plain-column=plain_user
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.rules.encrypt.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.rules.encrypt.encryptors.aes_encryptor.props.aes.key.value=123456
-```
-
## 配置项说明
```properties
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.en.md
index 681d480..440f745 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/encrypt.en.md
@@ -3,26 +3,6 @@ title = "Encryption"
weight = 3
+++
-## Configuration Example
-
-```properties
-spring.shardingsphere.datasource.names=ds
-
-spring.shardingsphere.datasource.ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds.url=jdbc:mysql://localhost:3306/ds
-spring.shardingsphere.datasource.ds.username=root
-spring.shardingsphere.datasource.ds.password=root
-
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.cipher-column=user_encrypt
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.assisted-query-column=user_assisted
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.plain-column=user_decrypt
-spring.shardingsphere.rules.encrypt.tables.t_order.columns.user_id.encryptor-name=aes_encryptor
-
-spring.shardingsphere.rules.encrypt.encryptors.aes_encryptor.type=AES
-spring.shardingsphere.rules.encrypt.encryptors.aes_encryptor.props.aes.key.value=123456
-```
-
## Configuration Item Explanation
```properties
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md
index bf19ec4..7a2b49a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md
@@ -3,11 +3,6 @@ title = "分布式治理"
weight = 6
+++
-
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.en.md
index 743d0b8..321d814 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.en.md
@@ -3,10 +3,6 @@ title = "Governance"
weight = 6
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.cn.md
index a410313..8372bb3 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.cn.md
@@ -3,36 +3,6 @@ title = "读写分离"
weight = 2
+++
-## 配置示例
-
-```properties
-spring.shardingsphere.datasource.names=master_ds,slave_ds0,slave_ds1
-
-spring.shardingsphere.datasource.master_ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master_ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master_ds.url=jdbc:mysql://localhost:3306/master_ds
-spring.shardingsphere.datasource.master_ds.username=root
-spring.shardingsphere.datasource.master_ds.password=root
-
-spring.shardingsphere.datasource.slave_ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave_ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave_ds0.url=jdbc:mysql://localhost:3306/slave_ds0
-spring.shardingsphere.datasource.slave_ds0.username=root
-spring.shardingsphere.datasource.slave_ds0.password=root
-
-spring.shardingsphere.datasource.slave_ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave_ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave_ds1.url=jdbc:mysql://localhost:3306/slave_ds1
-spring.shardingsphere.datasource.slave_ds1.username=root
-spring.shardingsphere.datasource.slave_ds1.password=root
-
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.master-data-source-name=master_ds
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.slave-data-source-names=slave_ds0,slave_ds1
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.load-balancer-name=random
-
-spring.shardingsphere.rules.master-slave.load-balancers.random.type=RANDOM
-```
-
## 配置项说明
```properties
@@ -42,7 +12,9 @@ spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-
spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-name>.slave-data-source-names= # 从数据源名称,多个从数据源用逗号分隔
spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-name>.load-balancer-name= # 负载均衡算法名称
+# 负载均衡算法配置
spring.shardingsphere.rules.master-slave.load-balancers.<load-balance-algorithm-name>.type= # 负载均衡算法类型
+spring.shardingsphere.rules.master-slave.load-balancers.<load-balance-algorithm-name>.props.xxx= # 负载均衡算法属性配置
```
算法类型的详情,请参见[内置负载均衡算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance)。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.en.md
index c83d85c..a910465 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/read-write-split.en.md
@@ -3,36 +3,6 @@ title = "Read-write Split"
weight = 2
+++
-## Configuration Example
-
-```properties
-spring.shardingsphere.datasource.names=master_ds,slave_ds0,slave_ds1
-
-spring.shardingsphere.datasource.master_ds.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.master_ds.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.master_ds.url=jdbc:mysql://localhost:3306/master_ds
-spring.shardingsphere.datasource.master_ds.username=root
-spring.shardingsphere.datasource.master_ds.password=root
-
-spring.shardingsphere.datasource.slave_ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave_ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave_ds0.url=jdbc:mysql://localhost:3306/slave_ds0
-spring.shardingsphere.datasource.slave_ds0.username=root
-spring.shardingsphere.datasource.slave_ds0.password=root
-
-spring.shardingsphere.datasource.slave_ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.slave_ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.slave_ds1.url=jdbc:mysql://localhost:3306/slave_ds1
-spring.shardingsphere.datasource.slave_ds1.username=root
-spring.shardingsphere.datasource.slave_ds1.password=root
-
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.master-data-source-name=master_ds
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.slave-data-source-names=slave_ds0,slave_ds1
-spring.shardingsphere.rules.master-slave.data-sources.ms_ds.load-balancer-name=random
-
-spring.shardingsphere.rules.master-slave.load-balancers.random.type=RANDOM
-```
-
## Configuration Item Explanation
```properties
@@ -42,7 +12,9 @@ spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-
spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-name>.slave-data-source-names= # Slave data source names, multiple data source names separated with comma
spring.shardingsphere.rules.master-slave.data-sources.<master-slave-data-source-name>.load-balancer-name= # Load balance algorithm name
+# Load balance algorithm configuration
spring.shardingsphere.rules.master-slave.load-balancers.<load-balance-algorithm-name>.type= # Load balance algorithm type
+spring.shardingsphere.rules.master-slave.load-balancers.<load-balance-algorithm-name>.props.xxx= # Load balance algorithm properties
```
Please refer to [Built-in Load Balance Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance) for more details about type of algorithm.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.cn.md
index 9da0627..03d982a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.cn.md
@@ -3,10 +3,6 @@ title = "多数据副本"
weight = 5
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.en.md
index 49cafd3..9f63129 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/replica.en.md
@@ -3,10 +3,6 @@ title = "Multi Replica"
weight = 5
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.cn.md
index 88ccbcd..3f3dcf1 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.cn.md
@@ -3,10 +3,6 @@ title = "影子库"
weight = 4
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md
index 9bef64c..1d511b9 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md
@@ -3,10 +3,6 @@ title = "Shadow DB"
weight = 4
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.cn.md
index 3d45a7b..01ad680 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.cn.md
@@ -3,53 +3,6 @@ title = "数据分片"
weight = 1
+++
-## 配置示例
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=root
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=root
-
-spring.shardingsphere.rules.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..7}
-spring.shardingsphere.rules.sharding.tables.t_order.database-strategy.standard.database_inline.sharding-column=user_id
-spring.shardingsphere.rules.sharding.tables.t_order.database-strategy.standard.database_inline.sharding-algorithm-name=database_inline
-spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.t_order_inline.sharding-column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.t_order_inline.sharding-algorithm-name=t_order_inline
-spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.rules.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..7}
-spring.shardingsphere.rules.sharding.tables.t_order_item.database-strategy.standard.database_inline.sharding-column=user_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.database-strategy.standard.database_inline.sharding-algorithm-name=database_inline
-spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.t_order_inline.sharding-column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.t_order_inline.sharding-algorithm-name=t_order_item_inline
-spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.rules.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.rules.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.props.algorithm.expression=ds_${user_id % 2}
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_inline.props.algorithm.expression=t_order_${order_id % 8}
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_item_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_item_inline.props.algorithm.expression=t_order_item_${order_id % 8}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-spring.shardingsphere.sharding.key-generators.snowflake.props.worder.id=123
-```
-
## 配置项说明
```properties
@@ -98,6 +51,8 @@ spring.shardingsphere.rules.sharding.key-generators.<key-generate-algorithm-name
spring.shardingsphere.rules.sharding.key-generators.<key-generate-algorithm-name>.props.xxx= # 分布式序列算法属性配置
```
+算法类型的详情,请参见[内置分片算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/sharding)和[内置分布式序列算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/keygen)。
+
## 注意事项
行表达式标识符可以使用 `${...}` 或 `$->{...}`,但前者与 Spring 本身的属性文件占位符冲突,因此在 Spring 环境中使用行表达式标识符建议使用 `$->{...}`。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.en.md
index 9431b4c..5b553ab 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/sharding.en.md
@@ -3,59 +3,12 @@ title = "Sharding"
weight = 1
+++
-## Configuration Example
-
-```properties
-spring.shardingsphere.datasource.names=ds0,ds1
-
-spring.shardingsphere.datasource.ds0.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds0.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ds0
-spring.shardingsphere.datasource.ds0.username=root
-spring.shardingsphere.datasource.ds0.password=root
-
-spring.shardingsphere.datasource.ds1.type=org.apache.commons.dbcp2.BasicDataSource
-spring.shardingsphere.datasource.ds1.driver-class-name=com.mysql.jdbc.Driver
-spring.shardingsphere.datasource.ds1.url=jdbc:mysql://localhost:3306/ds1
-spring.shardingsphere.datasource.ds1.username=root
-spring.shardingsphere.datasource.ds1.password=root
-
-spring.shardingsphere.rules.sharding.tables.t_order.actual-data-nodes=ds$->{0..1}.t_order$->{0..7}
-spring.shardingsphere.rules.sharding.tables.t_order.database-strategy.standard.database_inline.sharding-column=user_id
-spring.shardingsphere.rules.sharding.tables.t_order.database-strategy.standard.database_inline.sharding-algorithm-name=database_inline
-spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.t_order_inline.sharding-column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.t_order_inline.sharding-algorithm-name=t_order_inline
-spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.rules.sharding.tables.t_order_item.actual-data-nodes=ds$->{0..1}.t_order_item$->{0..7}
-spring.shardingsphere.rules.sharding.tables.t_order_item.database-strategy.standard.database_inline.sharding-column=user_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.database-strategy.standard.database_inline.sharding-algorithm-name=database_inline
-spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.t_order_inline.sharding-column=order_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.t_order_inline.sharding-algorithm-name=t_order_item_inline
-spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id
-spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake
-
-spring.shardingsphere.rules.sharding.binding-tables=t_order,t_order_item
-spring.shardingsphere.rules.sharding.broadcast-tables=t_config
-
-spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.database_inline.props.algorithm.expression=ds_${user_id % 2}
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_inline.props.algorithm.expression=t_order_${order_id % 8}
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_item_inline.type=INLINE
-spring.shardingsphere.rules.sharding.sharding-algorithms.t_order_item_inline.props.algorithm.expression=t_order_item_${order_id % 8}
-
-spring.shardingsphere.sharding.key-generators.snowflake.type=SNOWFLAKE
-spring.shardingsphere.sharding.key-generators.snowflake.props.worder.id=123
-```
-
## Configuration Item Explanation
```properties
spring.shardingsphere.datasource.names= # Omit data source configuration
-spring.shardingsphere.rules.sharding.tables.<table-name>.actual-data-nodes= # Describe data source names and actual tables, delimiter as point, multiple data nodes separated with comma, support inline expression. Absent means sharding databases only. Example: ds${0..7}.tbl${0..7}
+spring.shardingsphere.rules.sharding.tables.<table-name>.actual-data-nodes= # Describe data source names and actual tables, delimiter as point, multiple data nodes separated with comma, support inline expression. Absent means sharding databases only.
# Databases sharding strategy, use default databases sharding strategy if absent. sharding strategy below can choose only one.
@@ -98,6 +51,8 @@ spring.shardingsphere.rules.sharding.key-generators.<key-generate-algorithm-name
spring.shardingsphere.rules.sharding.key-generators.<key-generate-algorithm-name>.props.xxx= # Key generate algorithm properties
```
+Please refer to [Built-in Sharding Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/sharding) and [Built-in Key Generate Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/keygen) for more details about type of algorithm.
+
## Attention
Inline expression identifier can use `${...}` or `$->{...}`, but `${...}` is conflict with spring placeholder of properties, so use `$->{...}` on spring environment is better.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.cn.md
new file mode 100644
index 0000000..510cec5
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.cn.md
@@ -0,0 +1,59 @@
++++
+title = "Spring 命名空间配置"
+weight = 4
++++
+
+## 简介
+
+ShardingSphere-JDBC 提供官方的 Spring 命名空间配置,使开发者可以非常便捷的整合 ShardingSphere-JDBC 和 Spring 框架。
+
+## Spring 命名空间配置项
+
+### 配置示例
+
+```xml
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/datasource
+ http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
+ ">
+ <bean id="ds0" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
+ <property name="driverClassName" value="com.mysql.jdbc.Driver" />
+ <property name="url" value="jdbc:mysql://localhost:3306/ds0" />
+ <property name="username" value="root" />
+ <property name="password" value="" />
+ </bean>
+
+ <bean id="ds1" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
+ <property name="driverClassName" value="com.mysql.jdbc.Driver" />
+ <property name="url" value="jdbc:mysql://localhost:3306/ds1" />
+ <property name="username" value="root" />
+ <property name="password" value="" />
+ </bean>
+
+ <!-- 配置规则,更多详细配置请参见具体的规则配置部分。 -->
+ <!-- ... -->
+
+ <shardingsphere:data-source id="shardingDataSource" data-source-names="ds0,ds1" rule-refs="..." >
+ <props>
+ <prop key="xxx.xxx">${xxx.xxx}</prop>
+ </props>
+ </shardingsphere:data-source>
+</beans>
+```
+
+### 配置项说明
+
+命名空间:http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
+
+\<shardingsphere:data-source />
+
+| *名称* | *类型* | *说明* |
+| ----------------- | ----- | --------------------------- |
+| id | 属性 | Spring Bean Id |
+| data-source-names | 标签 | 数据源名称,多个数据源以逗号分隔 |
+| rule-refs | 标签 | 规则名称,多个规则以逗号分隔 |
+| props (?) | 标签 | 属性配置,详情请参见[属性配置](/cn/user-manual/shardingsphere-jdbc/configuration/props) |
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.en.md
new file mode 100644
index 0000000..f47753e
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/_index.en.md
@@ -0,0 +1,59 @@
++++
+title = "Spring Namespace Configuration"
+weight = 4
++++
+
+## Introduction
+
+ShardingSphere-JDBC provides official Spring namespace to make convenient for developers to integrate ShardingSphere-JDBC and Spring Framework.
+
+## Spring Namespace Configuration Item
+
+### Configuration Example
+
+```xml
+<beans xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:shardingsphere="http://shardingsphere.apache.org/schema/shardingsphere/datasource"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
+ http://www.springframework.org/schema/beans/spring-beans.xsd
+ http://shardingsphere.apache.org/schema/shardingsphere/datasource
+ http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
+ ">
+ <bean id="ds0" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
+ <property name="driverClassName" value="com.mysql.jdbc.Driver" />
+ <property name="url" value="jdbc:mysql://localhost:3306/ds0" />
+ <property name="username" value="root" />
+ <property name="password" value="" />
+ </bean>
+
+ <bean id="ds1" class="org.apache.commons.dbcp2.BasicDataSource" destroy-method="close">
+ <property name="driverClassName" value="com.mysql.jdbc.Driver" />
+ <property name="url" value="jdbc:mysql://localhost:3306/ds1" />
+ <property name="username" value="root" />
+ <property name="password" value="" />
+ </bean>
+
+ <!-- Rule configurations, please refer to specific rule configuration for more details. -->
+ <!-- ... -->
+
+ <shardingsphere:data-source id="shardingDataSource" data-source-names="ds0,ds1" rule-refs="..." >
+ <props>
+ <prop key="xxx.xxx">${xxx.xxx}</prop>
+ </props>
+ </shardingsphere:data-source>
+</beans>
+```
+
+### Configuration Item Explanation
+
+Namespace: http://shardingsphere.apache.org/schema/shardingsphere/datasource/datasource.xsd
+
+\<shardingsphere:data-source />
+
+| *Name* | *Type* | *Description* |
+| ----------------- | --------- | -------------------------------------------------------------------- |
+| id | Attribute | Spring Bean Id |
+| data-source-names | Attribute | Data source name, multiple data source names are separated by commas |
+| rule-refs | Attribute | Rule name, multiple rule names are separated by commas |
+| props (?) | Tag | Properties configuration, Please refer to [Properties Configuration](/en/user-manual/shardingsphere-jdbc/configuration/props) for more details |
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.cn.md
new file mode 100644
index 0000000..a7ac660
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.cn.md
@@ -0,0 +1,42 @@
++++
+title = "数据加密"
+weight = 3
++++
+
+## 配置项说明
+
+命名空间:http://shardingsphere.apache.org/schema/shardingsphere/encrypt/encrypt.xsd
+
+\<encrypt:rule />
+
+| *名称* | *类型* | *说明* |
+| --------- | ----- | ------------- |
+| id | 属性 | Spring Bean Id |
+| table (+) | 标签 | 加密表配置 |
+
+\<encrypt:table />
+
+| *名称* | *类型* | *说明* |
+| ---------- | ----- | -------- |
+| name | 属性 | 加密表名称 |
+| column (+) | 标签 | 加密列配置 |
+
+\<encrypt:column />
+
+| *名称* | *类型* | *说明* |
+| ------------------------- | ----- | ------------ |
+| logic-column | 属性 | 加密列逻辑名称 |
+| cipher-column | 属性 | 加密列名称 |
+| assisted-query-column (?) | 属性 | 查询辅助列名称 |
+| plain-column (?) | 属性 | 原文列名称 |
+| encrypt-algorithm-ref | 属性 | 加密算法名称 |
+
+\<encrypt:encrypt-algorithm />
+
+| *名称* | *类型* | *说明* |
+| --------- | ----- | ------------- |
+| id | 属性 | 加密算法名称 |
+| type | 属性 | 加密算法类型 |
+| props (?) | 标签 | 加密算法属性配置 |
+
+算法类型的详情,请参见[内置加密算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/encrypt)。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.en.md
new file mode 100644
index 0000000..fb76281
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/encrypt.en.md
@@ -0,0 +1,42 @@
++++
+title = "Encryption"
+weight = 3
++++
+
+## Configuration Item Explanation
+
+Namespace: http://shardingsphere.apache.org/schema/shardingsphere/encrypt/encrypt.xsd
+
+\<encrypt:rule />
+
+| *Name* | *Type* | *Description* |
+| --------- | --------- | --------------------------- |
+| id | Attribute | Spring Bean Id |
+| table (+) | Tag | Encrypt table configuration |
+
+\<encrypt:table />
+
+| *Name* | *Type* | *Description* |
+| --------- | ---------- | ---------------------------- |
+| name | Attribute | Encrypt table name |
+| column (+) | Tag | Encrypt column configuration |
+
+\<encrypt:column />
+
+| *Name* | *Type* | *Description* |
+| ------------------------- | ---------- | -------------------------- |
+| logic-column | Attribute | Column logic name |
+| cipher-column | Attribute | Cipher column name |
+| assisted-query-column (?) | Attribute | Assisted query column name |
+| plain-column (?) | Attribute | Plain column name |
+| encrypt-algorithm-ref | Attribute | Encrypt algorithm name |
+
+\<encrypt:encrypt-algorithm />
+
+| *Name* | *Type* | *Description* |
+| --------- | ---------- | ---------------------------- |
+| id | Attribute | Encrypt algorithm name |
+| type | Attribute | Encrypt algorithm type |
+| props (?) | Tag | Encrypt algorithm properties |
+
+Please refer to [Built-in Encrypt Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/encrypt) for more details about type of algorithm.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.cn.md
similarity index 70%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.cn.md
index bf19ec4..7a2b49a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/governance.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.cn.md
@@ -3,11 +3,6 @@ title = "分布式治理"
weight = 6
+++
-
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.en.md
similarity index 67%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.en.md
index 743d0b8..321d814 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/governance.en.md
@@ -3,10 +3,6 @@ title = "Governance"
weight = 6
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.cn.md
new file mode 100644
index 0000000..247c064
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.cn.md
@@ -0,0 +1,35 @@
++++
+title = "读写分离"
+weight = 2
++++
+
+## 配置项说明
+
+命名空间:http://shardingsphere.apache.org/schema/shardingsphere/masterslave/master-slave.xsd
+
+\<master-slave:rule />
+
+| *名称* | *类型* | *说明* |
+| -------------------- | ------ | --------------- |
+| id | 属性 | Spring Bean Id |
+| data-source-rule (+) | 标签 | 读写分离数据源规则配置 |
+
+\<master-slave:data-source-rule />
+
+| *名称* | *类型* | *说明* |
+| -------------------------- | ----- | ------------------------------- |
+| id | 属性 | 读写分离数据源规则名称 |
+| master-data-source-name | 属性 | 主数据源名称 |
+| slave-data-source-names | 属性 | 从数据源名称,多个从数据源用逗号分隔 |
+| load-balance-algorithm-ref | 属性 | 负载均衡算法名称 |
+
+
+\<master-slave:load-balance-algorithm />
+
+| *名称* | *类型* | *说明* |
+| --------- | ----- | ----------------- |
+| id | 属性 | 负载均衡算法名称 |
+| type | 属性 | 负载均衡算法类型 |
+| props (?) | 标签 | 负载均衡算法属性配置 |
+
+算法类型的详情,请参见[内置负载均衡算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance)。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.en.md
new file mode 100644
index 0000000..0357474
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/read-write-split.en.md
@@ -0,0 +1,34 @@
++++
+title = "Read-write Split"
+weight = 2
++++
+
+## Configuration Item Explanation
+
+Namespace: http://shardingsphere.apache.org/schema/shardingsphere/masterslave/master-slave.xsd
+
+\<master-slave:rule />
+
+| *Name* | *Type* | *Description* |
+| -------------------- | --------- | ------------------------------------------- |
+| id | Attribute | Spring Bean Id |
+| data-source-rule (+) | Tag | Master-slave data source rule configuration |
+
+\<master-slave:data-source-rule />
+
+| *Name* | *Type* | *Description* |
+| -------------------------- | ---------- | ------------------------------------------------------------------------ |
+| id | Attribute | Master-slave data source rule name |
+| master-data-source-name | Attribute | Master data source name |
+| slave-data-source-names | Attribute | Slave data source names, multiple data source names separated with comma |
+| load-balance-algorithm-ref | Attribute | Load balance algorithm name |
+
+\<master-slave:load-balance-algorithm />
+
+| *Name* | *Type* | *Description* |
+| --------- | ---------- | --------------------------------- |
+| id | Attribute | Load balance algorithm name |
+| type | Attribute | Load balance algorithm type |
+| props (?) | Tag | Load balance algorithm properties |
+
+Please refer to [Built-in Load Balance Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/load-balance) for more details about type of algorithm.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.cn.md
similarity index 75%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.cn.md
index 9da0627..03d982a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.cn.md
@@ -3,10 +3,6 @@ title = "多数据副本"
weight = 5
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.en.md
similarity index 72%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.en.md
index 49cafd3..9f63129 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/replica.en.md
@@ -3,10 +3,6 @@ title = "Multi Replica"
weight = 5
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.cn.md
similarity index 73%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.cn.md
index 88ccbcd..3f3dcf1 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.cn.md
@@ -3,10 +3,6 @@ title = "影子库"
weight = 4
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.en.md
similarity index 71%
copy from docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md
copy to docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.en.md
index 9bef64c..1d511b9 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/shadow.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/shadow.en.md
@@ -3,10 +3,6 @@ title = "Shadow DB"
weight = 4
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.cn.md
new file mode 100644
index 0000000..90c4afb
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.cn.md
@@ -0,0 +1,114 @@
++++
+title = "数据分片"
+weight = 1
++++
+
+## 配置项说明
+
+命名空间:http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
+
+\<sharding:rule />
+
+| *名称* | *类型* | *说明* |
+| ------------------------------------- | ------ | ------------------ |
+| id | 属性 | Spring Bean Id |
+| table-rules (?) | 标签 | 分片表规则配置 |
+| auto-table-rules (?) | 标签 | 自动化分片表规则配置 |
+| binding-table-rules (?) | 标签 | 绑定表规则配置 |
+| broadcast-table-rules (?) | 标签 | 广播表规则配置 |
+| default-database-strategy-ref (?) | 属性 | 默认分库策略名称 |
+| default-table-strategy-ref (?) | 属性 | 默认分表策略名称 |
+| default-key-generate-strategy-ref (?) | 属性 | 默认分布式序列策略名称 |
+
+\<sharding:table-rule />
+
+| *名称* | *类型* | *说明* |
+| ------------------------- | ----- | --------------- |
+| logic-table | 属性 | 逻辑表名称 |
+| actual-data-nodes | 属性 | 由数据源名 + 表名组成,以小数点分隔。多个表以逗号分隔,支持inline表达式。缺省表示使用已知数据源与逻辑表名称生成数据节点,用于广播表(即每个库中都需要一个同样的表用于关联查询,多为字典表)或只分库不分表且所有库的表结构完全一致的情况 |
+| database-strategy-ref | 属性 | 分库策略名称 |
+| table-strategy-ref | 属性 | 分表策略名称 |
+| key-generate-strategy-ref | 属性 | 分布式序列策略名称 |
+
+\<sharding:binding-table-rules />
+
+| *名称* | *类型* | *说明* |
+| ---------------------- | ------ | ------------ |
+| binding-table-rule (+) | 标签 | 绑定表规则配置 |
+
+\<sharding:binding-table-rule />
+
+| *名称* | *类型* | *说明* |
+| ------------ | ------ | ------------------------ |
+| logic-tables | 属性 | 绑定表名称,多个表以逗号分隔 |
+
+\<sharding:broadcast-table-rules />
+
+| *名称* | *类型* | *说明* |
+| ---------------------- | ------ | ------------ |
+| broadcast-table-rule (+) | 标签 | 广播表规则配置 |
+
+\<sharding:broadcast-table-rule />
+
+| *名称* | *类型* | *说明* |
+| ------ | ----- | -------- |
+| table | 属性 | 广播表名称 |
+
+\<sharding:standard-strategy />
+
+| *名称* | *类型* | *说明* |
+| --------------- | ----- | -------------- |
+| id | 属性 | 标准分片策略名称 |
+| sharding-column | 属性 | 分片列名称 |
+| algorithm-ref | 属性 | 分片算法名称 |
+
+\<sharding:complex-strategy />
+
+| *名称* | *类型* | *说明* |
+| ---------------- | ----- | ------------------------- |
+| id | 属性 | 复合分片策略名称 |
+| sharding-columns | 属性 | 分片列名称,多个列以逗号分隔 |
+| algorithm-ref | 属性 | 分片算法名称 |
+
+\<sharding:hint-strategy />
+
+| *名称* | *类型* | *说明* |
+| ------------- | ----- | ---------------- |
+| id | 属性 | Hint 分片策略名称 |
+| algorithm-ref | 属性 | 分片算法名称 |
+
+\<sharding:none-strategy />
+
+| *名称* | *类型* | *说明* |
+| ------ | ----- | ----------- |
+| id | 属性 | 分片策略名称 |
+
+\<sharding:key-generate-strategy />
+
+| *名称* | *类型* | *说明* |
+| ------------- | ----- | ---------------- |
+| id | 属性 | 分布式序列策略名称 |
+| column | 属性 | 分布式序列列名称 |
+| algorithm-ref | 属性 | 分布式序列算法名称 |
+
+\<sharding:sharding-algorithm />
+
+| *名称* | *类型* | *说明* |
+| --------- | ----- | ------------- |
+| id | 属性 | 分片算法名称 |
+| type | 属性 | 分片算法类型 |
+| props (?) | 标签 | 分片算法属性配置 |
+
+\<sharding:key-generate-algorithm />
+
+| *名称* | *类型* | *说明* |
+| --------- | ----- | ------------------ |
+| id | 属性 | 分布式序列算法名称 |
+| type | 属性 | 分布式序列算法类型 |
+| props (?) | 标签 | 分布式序列算法属性配置 |
+
+算法类型的详情,请参见[内置分片算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/sharding)和[内置分布式序列算法列表](/cn/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/keygen)。
+
+## 注意事项
+
+行表达式标识符可以使用 `${...}` 或 `$->{...}`,但前者与 Spring 本身的属性文件占位符冲突,因此在 Spring 环境中使用行表达式标识符建议使用 `$->{...}`。
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.en.md
new file mode 100644
index 0000000..f890721
--- /dev/null
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/spring-namespace/sharding.en.md
@@ -0,0 +1,114 @@
++++
+title = "Sharding"
+weight = 1
++++
+
+## Configuration Item Explanation
+
+Namespace: http://shardingsphere.apache.org/schema/shardingsphere/sharding/sharding.xsd
+
+\<sharding:rule />
+
+| *Name* | *Type* | *Description* |
+| ------------------------------------- | --------- | ------------------------------------------- |
+| id | Attribute | Spring Bean Id |
+| table-rules (?) | Tag | Sharding table rule configuration |
+| auto-table-rules (?) | Tag | Automatic sharding table rule configuration |
+| binding-table-rules (?) | Tag | Binding table rule configuration |
+| broadcast-table-rules (?) | Tag | Broadcast table rule configuration |
+| default-database-strategy-ref (?) | Attribute | Default database strategy name |
+| default-table-strategy-ref (?) | Attribute | Default table strategy name |
+| default-key-generate-strategy-ref (?) | Attribute | Default key generate strategy name |
+
+\<sharding:table-rule />
+
+| *Name* | *Type* | *Description* |
+| ------------------------- | --------- | -------------------------- |
+| logic-table | Attribute | Logic table name |
+| actual-data-nodes | Attribute | Describe data source names and actual tables, delimiter as point, multiple data nodes separated with comma, support inline expression. Absent means sharding databases only. |
+| database-strategy-ref | Attribute | Database strategy name |
+| table-strategy-ref | Attribute | Table strategy name |
+| key-generate-strategy-ref | Attribute | Key generate strategy name |
+
+\<sharding:binding-table-rules />
+
+| *Name* | *Type* | *Description* |
+| ---------------------- | ------ | -------------------------------- |
+| binding-table-rule (+) | Tag | Binding table rule configuration |
+
+\<sharding:binding-table-rule />
+
+| *Name* | *Type* | *Description* |
+| ------------ | --------- | -------------------------------------------------------- |
+| logic-tables | Attribute | Binding table name, multiple tables separated with comma |
+
+\<sharding:broadcast-table-rules />
+
+| *Name* | *Type* | *Description* |
+| ------------------------ | ------ | ---------------------------------- |
+| broadcast-table-rule (+) | Tag | Broadcast table rule configuration |
+
+\<sharding:broadcast-table-rule />
+
+| *Name* | *Type* | *Description* |
+| ------ | --------- | -------------------- |
+| table | Attribute | Broadcast table name |
+
+\<sharding:standard-strategy />
+
+| *Name* | *Type* | *Description* |
+| --------------- | --------- | ------------------------------- |
+| id | Attribute | Standard sharding strategy name |
+| sharding-column | Attribute | Sharding column name |
+| algorithm-ref | Attribute | Sharding algorithm name |
+
+\<sharding:complex-strategy />
+
+| *Name* | *Type* | *Description* |
+| ---------------- | --------- | ------------------------------------------------------------ |
+| id | Attribute | Complex sharding strategy name |
+| sharding-columns | Attribute | Sharding column names, multiple columns separated with comma |
+| algorithm-ref | Attribute | Sharding algorithm name |
+
+\<sharding:hint-strategy />
+
+| *Name* | *Type* | *Description* |
+| ------------- | --------- | --------------------------- |
+| id | Attribute | Hint sharding strategy name |
+| algorithm-ref | Attribute | Sharding algorithm name |
+
+\<sharding:none-strategy />
+
+| *Name* | *Type* | *Description* |
+| ------ | --------- | ---------------------- |
+| id | Attribute | Sharding strategy name |
+
+\<sharding:key-generate-strategy />
+
+| *Name* | *Type* | *Description* |
+| ------------- | --------- | --------------------------- |
+| id | Attribute | Key generate strategy name |
+| column | Attribute | Key generate column name |
+| algorithm-ref | Attribute | Key generate algorithm name |
+
+\<sharding:sharding-algorithm />
+
+| *Name* | *Type* | *Description* |
+| --------- | --------- | ----------------------------- |
+| id | Attribute | Sharding algorithm name |
+| type | Attribute | Sharding algorithm type |
+| props (?) | Tag | Sharding algorithm properties |
+
+\<sharding:key-generate-algorithm />
+
+| *Name* | *Type* | *Description* |
+| --------- | --------- | --------------------------------- |
+| id | Attribute | Key generate algorithm name |
+| type | Attribute | Key generate algorithm type |
+| props (?) | Tag | Key generate algorithm properties |
+
+Please refer to [Built-in Sharding Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/sharding) and [Built-in Key Generate Algorithm List](/en/user-manual/shardingsphere-jdbc/configuration/built-in-algorithm/keygen) for more details about type of algorithm.
+
+## Attention
+
+Inline expression identifier can use `${...}` or `$->{...}`, but `${...}` is conflict with spring placeholder of properties, so use `$->{...}` on spring environment is better.
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.cn.md
index f251d31..89db235 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.cn.md
@@ -3,39 +3,6 @@ title = "数据加密"
weight = 3
+++
-## 配置示例
-
-```yaml
-dataSource: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds_name
- username: root
- password: root
-
-rules:
-- !ENCRYPT
- tables:
- t_user:
- columns:
- pwd:
- cipherColumn: pwd_cipher
- plainColumn: pwd_plain
- encryptorName: aes_encryptor
- phone:
- cipherColumn: phone_cipher
- encryptorName: md5_encryptor
- encryptors:
- aes_encryptor:
- type: AES
- props:
- aes.key.value: 123456
- md5_encryptor:
- type: MD5
-
-props:
- query.with.cipher.column: true
-```
-
## 配置项说明
```yaml
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.en.md
index 1dfb684..f0e9f41 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/encrypt.en.md
@@ -3,39 +3,6 @@ title = "Encryption"
weight = 3
+++
-## Configuration Example
-
-```yaml
-dataSource: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds_name
- username: root
- password: root
-
-rules:
-- !ENCRYPT
- tables:
- t_user:
- columns:
- pwd:
- cipherColumn: pwd_cipher
- plainColumn: pwd_plain
- encryptorName: aes_encryptor
- phone:
- cipherColumn: phone_cipher
- encryptorName: md5_encryptor
- encryptors:
- aes_encryptor:
- type: AES
- props:
- aes.key.value: 123456
- md5_encryptor:
- type: MD5
-
-props:
- query.with.cipher.column: true
-```
-
## Configuration Item Explanation
```yaml
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
index bf19ec4..7a2b49a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.cn.md
@@ -3,11 +3,6 @@ title = "分布式治理"
weight = 6
+++
-
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
index 743d0b8..321d814 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/governance.en.md
@@ -3,10 +3,6 @@ title = "Governance"
weight = 6
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
\ No newline at end of file
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.cn.md
index 3e6e1bd..de03f89 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.cn.md
@@ -3,44 +3,6 @@ title = "读写分离"
weight = 2
+++
-## 配置示例
-
-```yaml
-dataSources:
- master_ds: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/master_ds
- username: root
- password: root
- slave_ds0: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/slave_ds0
- username: root
- password: root
- slave_ds1: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/slave_ds1
- username: root
- password: root
-
-rules:
-- !MASTER_SLAVE
- dataSources:
- master_slave_ds:
- masterDataSourceName: master_ds
- slaveDataSourceNames:
- - slave_ds0
- - slave_ds1
- loadBalancerName: roundRobin
-
- loadBalancers:
- roundRobin:
- type: ROUND_ROBIN
-
-props:
- sql.show: true
-```
-
## 配置项说明
```yaml
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.en.md
index 1f313af..b1de432 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/read-write-split.en.md
@@ -3,44 +3,6 @@ title = "Read-write Split"
weight = 2
+++
-## Configuration Example
-
-```yaml
-dataSources:
- master_ds: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/master_ds
- username: root
- password: root
- slave_ds0: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/slave_ds0
- username: root
- password: root
- slave_ds1: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/slave_ds1
- username: root
- password: root
-
-rules:
-- !MASTER_SLAVE
- dataSources:
- master_slave_ds:
- masterDataSourceName: master_ds
- slaveDataSourceNames:
- - slave_ds0
- - slave_ds1
- loadBalancerName: roundRobin
-
- loadBalancers:
- roundRobin:
- type: ROUND_ROBIN
-
-props:
- sql.show: true
-```
-
## Configuration Item Explanation
```yaml
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md
index 9da0627..03d982a 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.cn.md
@@ -3,10 +3,6 @@ title = "多数据副本"
weight = 5
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md
index 49cafd3..9f63129 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/replica.en.md
@@ -3,10 +3,6 @@ title = "Multi Replica"
weight = 5
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md
index 88ccbcd..3f3dcf1 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.cn.md
@@ -3,10 +3,6 @@ title = "影子库"
weight = 4
+++
-## 配置示例
-
-TODO
-
## 配置项说明
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.en.md
index 9bef64c..1d511b9 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/shadow.en.md
@@ -3,10 +3,6 @@ title = "Shadow DB"
weight = 4
+++
-## Configuration Example
-
-TODO
-
## Configuration Item Explanation
TODO
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.cn.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.cn.md
index fd5c52a..bcd5c33 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.cn.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.cn.md
@@ -3,71 +3,6 @@ title = "数据分片"
weight = 1
+++
-## 配置示例
-
-```yaml
-dataSources:
- ds0: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds0
- username: root
- password: root
- ds1: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds1
- username: root
- password: root
-
-rules:
-- !SHARDING
- tables:
- t_order:
- actualDataNodes: ds${0..1}.t_order_${0..7}
- databaseStrategy:
- standard:
- shardingColumn: user_id
- shardingAlgorithmName: db_inline
- tableStrategy:
- standard:
- shardingColumn: order_id
- shardingAlgorithmName: t_order_inline
- t_order_item:
- actualDataNodes: ds${0..1}.t_order_item_${0..7}
- databaseStrategy:
- standard:
- shardingColumn: user_id
- shardingAlgorithmName: db_inline
- tableStrategy:
- standard:
- shardingColumn: order_id
- shardingAlgorithmName: t_order_item_inline
- keyGenerateStrategy:
- column: order_id
- keyGeneratorName: snowflake
- bindingTables:
- - t_order,t_order_item
- broadcastTables:
- - t_config
-
- shardingAlgorithms:
- db_inline:
- type: INLINE
- props:
- algorithm.expression: ds_${user_id % 2}
- t_order_inline:
- type: INLINE
- props:
- algorithm.expression: t_order_${order_id % 8}
- t_order_item_inline:
- type: INLINE
- props:
- algorithm.expression: t_order_item_${order_id % 8}
-
- keyGenerators:
- snowflake:
- type: SNOWFLAKE
-```
-
## 配置项说明
```yaml
diff --git a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.en.md b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.en.md
index 6836a7b..a9dd711 100644
--- a/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.en.md
+++ b/docs/document/content/user-manual/shardingsphere-jdbc/configuration/yaml/sharding.en.md
@@ -3,71 +3,6 @@ title = "Sharding"
weight = 1
+++
-## Configuration Example
-
-```yaml
-dataSources:
- ds0: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds0
- username: root
- password: root
- ds1: !!org.apache.commons.dbcp2.BasicDataSource
- driverClassName: com.mysql.jdbc.Driver
- url: jdbc:mysql://127.0.0.1:3306/ds1
- username: root
- password: root
-
-rules:
-- !SHARDING
- tables:
- t_order:
- actualDataNodes: ds${0..1}.t_order_${0..7}
- databaseStrategy:
- standard:
- shardingColumn: user_id
- shardingAlgorithmName: db_inline
- tableStrategy:
- standard:
- shardingColumn: order_id
- shardingAlgorithmName: t_order_inline
- t_order_item:
- actualDataNodes: ds${0..1}.t_order_item_${0..7}
- databaseStrategy:
- standard:
- shardingColumn: user_id
- shardingAlgorithmName: db_inline
- tableStrategy:
- standard:
- shardingColumn: order_id
- shardingAlgorithmName: t_order_item_inline
- keyGenerateStrategy:
- column: order_id
- keyGeneratorName: snowflake
- bindingTables:
- - t_order,t_order_item
- broadcastTables:
- - t_config
-
- shardingAlgorithms:
- db_inline:
- type: INLINE
- props:
- algorithm.expression: ds_${user_id % 2}
- t_order_inline:
- type: INLINE
- props:
- algorithm.expression: t_order_${order_id % 8}
- t_order_item_inline:
- type: INLINE
- props:
- algorithm.expression: t_order_item_${order_id % 8}
-
- keyGenerators:
- snowflake:
- type: SNOWFLAKE
-```
-
## Configuration Item Explanation
```yaml
@@ -77,7 +12,7 @@ rules:
- !SHARDING
tables: # Sharding rule configuration
<logic-table-name> (+): # Logic table name
- actualDataNodes (?): # Describe data source names and actual tables, delimiter as point, multiple data nodes separated with comma, support inline expression. Absent means sharding databases only. Example: ds${0..7}.tbl${0..7}
+ actualDataNodes (?): # Describe data source names and actual tables, delimiter as point, multiple data nodes separated with comma, support inline expression. Absent means sharding databases only.
databaseStrategy (?): # Databases sharding strategy, use default databases sharding strategy if absent. sharding strategy below can choose only one.
standard: # For single sharding column scenario
shardingColumn: # Sharding column name
diff --git a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-spring/shardingsphere-encrypt-spring-namespace/src/main/resources/META-INF/namespace/encrypt.xsd b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-spring/shardingsphere-encrypt-spring-namespace/src/main/resources/META-INF/namespace/encrypt.xsd
index 57e6e21..bb51c3f 100644
--- a/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-spring/shardingsphere-encrypt-spring-namespace/src/main/resources/META-INF/namespace/encrypt.xsd
+++ b/shardingsphere-features/shardingsphere-encrypt/shardingsphere-encrypt-spring/shardingsphere-encrypt-spring-namespace/src/main/resources/META-INF/namespace/encrypt.xsd
@@ -43,9 +43,9 @@
<xsd:element name="column">
<xsd:complexType>
<xsd:attribute name="logic-column" type="xsd:string" use="required" />
- <xsd:attribute name="plain-column" type="xsd:string" />
<xsd:attribute name="cipher-column" type="xsd:string" use="required" />
<xsd:attribute name="assisted-query-column" type="xsd:string" />
+ <xsd:attribute name="plain-column" type="xsd:string" />
<xsd:attribute name="encrypt-algorithm-ref" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
diff --git a/shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-core-spring/shardingsphere-jdbc-core-spring-namespace/src/test/resources/META-INF/rdb/shardingNamespace.xml b/shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-core-spring/shardingsphere-jdbc-core-spring-namespace/src/test/resources/META-INF/rdb/shardingNamespace.xml
index 57e83dd..02aee30 100644
--- a/shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-core-spring/shardingsphere-jdbc-core-spring-namespace/src/test/resources/META-INF/rdb/shardingNamespace.xml
+++ b/shardingsphere-jdbc/shardingsphere-jdbc-spring/shardingsphere-jdbc-core-spring/shardingsphere-jdbc-core-spring-namespace/src/test/resources/META-INF/rdb/shardingNamespace.xml
@@ -92,9 +92,9 @@
</encrypt:rule>
<shardingsphere:data-source id="simpleShardingDataSource" data-source-names="dbtbl_0" rule-refs="simpleShardingDataSourceShardingRule, simpleShardingDataSourceEncryptRule" />
-
+
<shardingsphere:data-source id="autoShardingDataSource" data-source-names="dbtbl_0, dbtbl_1" rule-refs="autoShardingDataSourceWithAutoTableRule" />
-
+
<sharding:rule id="masterSlaveShardingDataSourceByDefaultStrategyShardingRule" default-key-generate-strategy-ref="defaultKeyGenerateStrategy">
<sharding:table-rules>
<sharding:table-rule logic-table="t_order" actual-data-nodes="dbtbl_${0..1}.t_order_${0..3}" database-strategy-ref="standardStrategy" table-strategy-ref="inlineStrategy" key-generate-strategy-ref="orderKeyGenerator" />