blob: 60418ca20a60e0909d5875e810138907cd8933c0 [file] [log] [blame]
commit 95c1dc714690a8f8d1bf0ffc6161b2fdf1ee2467
Author: yx9o <yangx_soft@163.com>
Date: Mon Aug 2 11:40:24 2021 +0800
Update yaml-configuration.cn.md (#11590)
* Update yaml-configuration.cn.md
* Roll back to 5.0.0-alpha configuration
diff --git a/docs/document/content/others/api-change-history/shardingsphere-jdbc/yaml-configuration.cn.md b/docs/document/content/others/api-change-history/shardingsphere-jdbc/yaml-configuration.cn.md
index c7ba06b593..8ad26a6f4a 100644
--- a/docs/document/content/others/api-change-history/shardingsphere-jdbc/yaml-configuration.cn.md
+++ b/docs/document/content/others/api-change-history/shardingsphere-jdbc/yaml-configuration.cn.md
@@ -1,6 +1,6 @@
+++
title = "YAML 配置"
-weight = 2
+weight = 1
+++
## 5.0.0-alpha
@@ -284,7 +284,7 @@ encryptRule:
cipherColumn: order_cipher
encryptor: encryptor_md5
props:
- query.with.cipher.column: true #是否使用密文列查询
+ query.with.cipher.column: true # 是否使用密文列查询
```
### 治理
@@ -292,7 +292,7 @@ props:
#### 配置项说明
```yaml
-#省略数据分片、读写分离和数据脱敏配置
+# 省略数据分片、读写分离和数据脱敏配置
orchestration:
name: orchestration_ds
@@ -402,7 +402,7 @@ DataSource dataSource = MasterSlaveDataSourceFactory.createDataSource(yamlFile);
#### 配置项说明
```yaml
-#省略数据分片和读写分离配置
+# 省略数据分片和读写分离配置
orchestration:
name: orchestration_ds
@@ -451,7 +451,7 @@ shardingRule:
keyGeneratorClass: io.shardingjdbc.core.yaml.fixture.IncrementKeyGenerator
t_order_item:
actualDataNodes: db${0..1}.t_order_item_${0..1}
- #绑定表中其余的表的策略与第一张表的策略相同
+ # 绑定表中其余的表的策略与第一张表的策略相同
databaseStrategy:
standard:
shardingColumn: user_id
@@ -462,7 +462,7 @@ shardingRule:
algorithmInlineExpression: t_order_item_${order_id % 2}
bindingTables:
- t_order,t_order_item
- #默认数据库分片策略
+ # 默认数据库分片策略
defaultDatabaseStrategy:
none:
defaultTableStrategy:
@@ -530,7 +530,6 @@ masterSlaveRule:
DataSource dataSource = MasterSlaveDataSourceFactory.createDataSource(yamlFile);
```
-
### 治理
#### 配置项说明
@@ -581,6 +580,7 @@ DataSource dataSource = OrchestrationShardingDataSourceFactory.createDataSource(
```
读写分离数据源构建方式
+
```java
DataSource dataSource = OrchestrationMasterSlaveDataSourceFactory.createDataSource(yamlFile);
-```
\ No newline at end of file
+```