zkzong commented on issue #11072:
URL: 
https://github.com/apache/shardingsphere/issues/11072#issuecomment-871836540


   > Can you provider configurations
   
   ```properties
   spring.shardingsphere.datasource.names=ds
   
   spring.shardingsphere.datasource.ds.type=com.zaxxer.hikari.HikariDataSource
   
spring.shardingsphere.datasource.ds.driver-class-name=com.mysql.cj.jdbc.Driver
   
spring.shardingsphere.datasource.ds.jdbc-url=jdbc:mysql://localhost:3306/demo_ds?serverTimezone=UTC&useSSL=false&useUnicode=true&characterEncoding=UTF-8
   spring.shardingsphere.datasource.ds.username=root
   spring.shardingsphere.datasource.ds.password=root
   
   
spring.shardingsphere.sharding.tables.t_order.actual-data-nodes=ds.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.key-generator.type=SNOWFLAKE
   
#spring.shardingsphere.sharding.tables.t_order.key-generator.props.worker.id=123
   
   
spring.shardingsphere.sharding.tables.t_order_item.actual-data-nodes=ds.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.tables.t_order_item.key-generator.type=SNOWFLAKE
   
#spring.shardingsphere.sharding.tables.t_order_item.key-generator.props.worker.id=123
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to