|
15 | 15 | # limitations under the License.
|
16 | 16 | #
|
17 | 17 |
|
18 |
| -spring.shardingsphere.database.name=sharding-databases-tables |
19 |
| - |
20 |
| -spring.shardingsphere.mode.type=Cluster |
21 |
| -spring.shardingsphere.mode.repository.type=ZooKeeper |
22 |
| -spring.shardingsphere.mode.repository.props.namespace=demo_spring_boot_ds_sharding |
23 |
| -spring.shardingsphere.mode.repository.props.server-lists=localhost:2181 |
24 |
| - |
25 |
| -spring.shardingsphere.datasource.names=ds-0,ds-1 |
26 |
| - |
27 |
| -spring.shardingsphere.datasource.ds-0.type=com.zaxxer.hikari.HikariDataSource |
28 |
| -spring.shardingsphere.datasource.ds-0.driver-class-name=com.mysql.jdbc.Driver |
29 |
| -spring.shardingsphere.datasource.ds-0.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8 |
30 |
| -spring.shardingsphere.datasource.ds-0.username=root |
31 |
| -spring.shardingsphere.datasource.ds-0.password= |
32 |
| -spring.shardingsphere.datasource.ds-0.max-active=16 |
33 |
| - |
34 |
| -spring.shardingsphere.datasource.ds-1.type=com.zaxxer.hikari.HikariDataSource |
35 |
| -spring.shardingsphere.datasource.ds-1.driver-class-name=com.mysql.jdbc.Driver |
36 |
| -spring.shardingsphere.datasource.ds-1.jdbc-url=jdbc:mysql://localhost:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8 |
37 |
| -spring.shardingsphere.datasource.ds-1.username=root |
38 |
| -spring.shardingsphere.datasource.ds-1.password= |
39 |
| -spring.shardingsphere.datasource.ds-1.max-active=16 |
40 |
| - |
41 |
| -spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-column=user_id |
42 |
| -spring.shardingsphere.rules.sharding.default-database-strategy.standard.sharding-algorithm-name=database-inline |
43 |
| - |
44 |
| -spring.shardingsphere.rules.sharding.binding-tables[0]=t_order,t_order_item |
45 |
| -spring.shardingsphere.rules.sharding.broadcast-tables=t_address |
46 |
| - |
47 |
| -spring.shardingsphere.rules.sharding.tables.t_order.actual-data-nodes=ds-$->{0..1}.t_order_$->{0..1} |
48 |
| -spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.sharding-column=order_id |
49 |
| -spring.shardingsphere.rules.sharding.tables.t_order.table-strategy.standard.sharding-algorithm-name=t-order-inline |
50 |
| - |
51 |
| -spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.column=order_id |
52 |
| -spring.shardingsphere.rules.sharding.tables.t_order.key-generate-strategy.key-generator-name=snowflake |
53 |
| - |
54 |
| -spring.shardingsphere.rules.sharding.tables.t_order_item.actual-data-nodes=ds-$->{0..1}.t_order_item_$->{0..1} |
55 |
| -spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.sharding-column=order_id |
56 |
| -spring.shardingsphere.rules.sharding.tables.t_order_item.table-strategy.standard.sharding-algorithm-name=t-order-item-inline |
57 |
| - |
58 |
| -spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.column=order_item_id |
59 |
| -spring.shardingsphere.rules.sharding.tables.t_order_item.key-generate-strategy.key-generator-name=snowflake |
60 |
| - |
61 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.database-inline.type=INLINE |
62 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.database-inline.props.algorithm-expression=ds-$->{user_id % 2} |
63 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.t-order-inline.type=INLINE |
64 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.t-order-inline.props.algorithm-expression=t_order_$->{order_id % 2} |
65 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.t-order-item-inline.type=INLINE |
66 |
| -spring.shardingsphere.rules.sharding.sharding-algorithms.t-order-item-inline.props.algorithm-expression=t_order_item_$->{order_id % 2} |
67 |
| - |
68 |
| -spring.shardingsphere.rules.sharding.key-generators.snowflake.type=SNOWFLAKE |
69 |
| - |
70 |
| -spring.shardingsphere.rules.encrypt.encryptors.status-encryptor.type=AES |
71 |
| -spring.shardingsphere.rules.encrypt.encryptors.status-encryptor.props.aes-key-value=123456 |
72 |
| -spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.cipher-column=status |
73 |
| -spring.shardingsphere.rules.encrypt.tables.t_order.columns.status.encryptor-name=status-encryptor |
| 18 | +spring.datasource.driver-class-name=org.apache.shardingsphere.driver.ShardingSphereDriver |
| 19 | +spring.datasource.url=jdbc:shardingsphere:classpath:local-zookeeper-sharding-databases-tables.yaml |
0 commit comments