zhanglinsong commented on issue #28779:
URL: 
https://github.com/apache/shardingsphere/issues/28779#issuecomment-1767961134

   > i also try to find answer at official document 、blog 、github issuses , i 
found nothing about this.
   
   mode: # 不配置默认单机
     type: Standalone # 运行模式类型。可选配置:Standalone、Cluster
     repository:
       type: JDBC # 持久化仓库类型
   dataSources:
     test:
       type: com.alibaba.druid.pool.DruidDataSource
       dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
       driverClassName: com.mysql.jdbc.Driver
       url: jdbc:mysql://localhost:3306/test
       username: root
       password: zard
   rules:
     - !SHARDING
       tables: # 数据分片规则配置
         customer:
           actualDataNodes: test.customer
           tableStrategy:
             standard:
               shardingColumn: customer_id
               shardingAlgorithmName: customer_id
           keyGenerateStrategy: # 分布式序列策略
             column: id
             keyGeneratorName: snowflake
       keyGenerators:
         snowflake:
           type: SNOWFLAKE
       shardingAlgorithms:
         customer_id:
           type: CLASS_BASED
           props:
             strategy: standard
             algorithmClassName: 
com.example.shardingjdbclearn.config.CspShardingAlgorithms
   props:
     sql-show: 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