You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "TeslaCN (via GitHub)" <gi...@apache.org> on 2023/04/17 08:10:33 UTC

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

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

   
   It seems that your format is incorrect. Here is an example of my configuration.
   
   ```yaml
   rules:
   - !SHARDING
     tables:
       t_order_item:
         actualDataNodes: ds.t_order_item_${0..1}
         tableStrategy:
           standard:
             shardingColumn: order_id
             shardingAlgorithmName: t_order_item_inline
   
     shardingAlgorithms:
       t_order_item_inline:
         type: INLINE
         props:
           algorithm-expression: t_order_item_${order_id % 2}
   ```


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