yangjwInRiver removed a comment on issue #2819: How to turn off keyGenerator 
feature  in 4.0.0-RC1 version
URL: 
https://github.com/apache/incubator-shardingsphere/issues/2819#issuecomment-521183344
 
 
   `spring:
     main:
       allow-bean-definition-overriding: true
     shardingsphere:
       datasource:
         names: master,slave
         master:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: ${spring.datasource.master.driver-class-name}
           url: 
${mysql.master.url}/faceaccount?useUnicode=true&characterEncoding=utf8&useSSL=false
           username: ${spring.datasource.master.username}
           password: ${spring.datasource.master.password}
         slave:
           type: com.alibaba.druid.pool.DruidDataSource
           driver-class-name: ${spring.datasource.slave.driver-class-name}
           url: 
${mysql.slave.url}/faceaccount?useUnicode=true&characterEncoding=utf8&useSSL=false
           username: ${spring.datasource.slave.username}
           password: ${spring.datasource.slave.password}
       sharding:
         tables:
           t_account_record:
             actual-data-nodes: 
ds0.t_account_record_20190${1..9},ds0.t_account_record_2019${10..12}
             table-strategy:
               complex:
                 sharding-columns: record_no,gmt8_create,account_no
                 algorithm-class-name: 
com.yitu.ispd.faceaccount.core.strategy.dbsharding.FuComplexShardingAlgorithm
   #            standard:
   #              sharding-column: gmt8_create
   #              precise-algorithm-class-name: 
com.yitu.ispd.faceaccount.core.strategy.dbsharding.FuPreciseShardingAlgorithm
   #              range-algorithm-class-name: 
com.yitu.ispd.faceaccount.core.strategy.dbsharding.FuRangeShardingAlgorithm
         master-slave-rules:
           ds0:
             master-data-source-name: master
             slave-data-source-names: slave
       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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to