|
@@ -12,11 +12,11 @@ sharding.jdbc.datasource.ds_0.password=123456
|
12
|
12
|
#sharding.jdbc.config.sharding.default-key-generator-class-name= io.shardingsphere.example.spring.boot.mybatis.service.IDGenerator
|
13
|
13
|
|
14
|
14
|
sharding.jdbc.config.sharding.tables.t_order.database-strategy.complex.sharding-columns=order_code,gmt_create
|
15
|
|
-sharding.jdbc.config.sharding.tables.t_order.database-strategy.complex.algorithm-class-name=io.shardingsphere.example.spring.boot.mybatis.algorithm.DatabaseShardingAlgorithm
|
|
15
|
+sharding.jdbc.config.sharding.tables.t_order.database-strategy.complex.algorithm-class-name=com.huojutech.sharding.algorithm.DatabaseShardingAlgorithm
|
16
|
16
|
sharding.jdbc.config.sharding.tables.t_order.actual-data-nodes=ds_0.t_order_$->{2018..2019}_$->{0..1}
|
17
|
17
|
sharding.jdbc.config.sharding.tables.t_order.table-strategy.complex.sharding-columns=order_code,gmt_create
|
18
|
18
|
sharding.jdbc.config.sharding.tables.t_order.key-generator-column-name=order_id
|
19
|
|
-sharding.jdbc.config.sharding.tables.t_order.table-strategy.complex.algorithm-class-name=io.shardingsphere.example.spring.boot.mybatis.algorithm.MyPreciseShardingAlgorithm
|
|
19
|
+sharding.jdbc.config.sharding.tables.t_order.table-strategy.complex.algorithm-class-name=com.huojutech.sharding.algorithm.MyPreciseShardingAlgorithm
|
20
|
20
|
|
21
|
21
|
#sharding.jdbc.config.sharding.tables.t_order_item.actual-data-nodes=ds_$->{0..1}.t_order_item_$->{0..1}
|
22
|
22
|
#sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.inline.sharding-column=order_id
|
|
@@ -24,11 +24,11 @@ sharding.jdbc.config.sharding.tables.t_order.table-strategy.complex.algorithm-cl
|
24
|
24
|
#sharding.jdbc.config.sharding.tables.t_order_item.key-generator-column-name=order_item_id
|
25
|
25
|
|
26
|
26
|
sharding.jdbc.config.sharding.tables.t_order_item.database-strategy.complex.sharding-columns=order_code,gmt_create
|
27
|
|
-sharding.jdbc.config.sharding.tables.t_order_item.database-strategy.complex.algorithm-class-name=io.shardingsphere.example.spring.boot.mybatis.algorithm.DatabaseShardingAlgorithm
|
|
27
|
+sharding.jdbc.config.sharding.tables.t_order_item.database-strategy.complex.algorithm-class-name=com.huojutech.sharding.algorithm.DatabaseShardingAlgorithm
|
28
|
28
|
sharding.jdbc.config.sharding.tables.t_order_item.actual-data-nodes=ds_0.t_order_item_$->{2018..2019}_$->{0..1}
|
29
|
29
|
sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.complex.sharding-columns=order_code,gmt_create
|
30
|
30
|
sharding.jdbc.config.sharding.tables.t_order_item.key-generator-column-name=order_item_id
|
31
|
|
-sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.complex.algorithm-class-name=io.shardingsphere.example.spring.boot.mybatis.algorithm.MyPreciseShardingAlgorithm
|
|
31
|
+sharding.jdbc.config.sharding.tables.t_order_item.table-strategy.complex.algorithm-class-name=com.huojutech.sharding.algorithm.MyPreciseShardingAlgorithm
|
32
|
32
|
|
33
|
33
|
sharding.jdbc.config.sharding.binding-tables[0]= t_order,t_order_item
|
34
|
34
|
|