You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "zkpgds (via GitHub)" <gi...@apache.org> on 2023/05/21 06:30:14 UTC

[GitHub] [shardingsphere] zkpgds commented on issue #25191: Cannot create property=rules for JavaBean=org.apache.shardingsphere.infra.yaml.config.pojo.YamlRootConfiguration@2c8f294

zkpgds commented on issue #25191:
URL: https://github.com/apache/shardingsphere/issues/25191#issuecomment-1556096900

   dataSources:
     ywt159:
       dataSourceClassName: com.alibaba.druid.pool.DruidDataSource
       driverClassName: com.mysql.jdbc.Driver
       jdbcUrl: jdbc:mysql://192.168.1.180:3306/ywt159?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false
       username: ywt
       password: welcome1
   rules:
     - !SHARDING
       tables:
         hos_receipt:
           actualDataNodes: ywt159.hos_receipt${0..1}
           tableStrategy:
             standard:
               shardingColumn: id
               shardingAlgorithmName: hos_receipt_detail
       
       shardingAlgorithms:
         hos_receipt_detail:
           type: INLINE
           props:
             algorithm-expression: hos_receipt_detail${id % 2}
   props:
     sql.show: true
   
   try this


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org