stephensuxun commented on issue #12270:
URL: 
https://github.com/apache/shardingsphere/issues/12270#issuecomment-914203217


   spring.shardingsphere.datasource.names=ds0
   
   spring.shardingsphere.sharding.default-data-source-name=ds0
   
   
spring.shardingsphere.datasource.common.driver-class-name=com.mysql.cj.jdbc.Driver
   
   spring.shardingsphere.datasource.ds0.username=root
   spring.shardingsphere.datasource.ds0.password=root
   
spring.shardingsphere.datasource.ds0.url=jdbc:mysql://localhost:3306/ims-hidden?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
   
spring.shardingsphere.datasource.ds0.type=com.alibaba.druid.pool.DruidDataSource
   
   
spring.shardingsphere.rules.sharding.sharding-algorithms.table-inline.type=INLINE
   
spring.shardingsphere.rules.sharding.sharding-algorithms.table-inline.props.algorithm-expression=ainews_user_$->{user_id
 % 2}
   
   
spring.shardingsphere.rules.sharding.tables.ainews_user.actual-data-nodes=ds$->{0}.ainews_user_$->{0..1}
   
   
spring.shardingsphere.rules.sharding.tables.ainews_user.database-strategy.standard.sharding-column=user_id
   
spring.shardingsphere.rules.sharding.tables.ainews_user.database-strategy.standard.sharding-algorithm-name=database-inline
   
   
spring.shardingsphere.rules.sharding.tables.ainews_user.table-strategy.standard.sharding-column=user_id
   
spring.shardingsphere.rules.sharding.tables.ainews_user.table-strategy.standard.sharding-algorithm-name=table-inline
   
   spring.shardingsphere.rules.sharding.key-generators.snowflake.type=SNOWFLAKE
   
spring.shardingsphere.rules.sharding.key-generators.snowflake.props.worker-id=123
   
   spring.shardingsphere.props.sql.show=true
   
   spring.main.allow-bean-definition-overriding = true


-- 
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