You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/03/19 06:09:19 UTC

[GitHub] [shardingsphere] huanghao495430759 commented on issue #9741: Caused by: java.util.NoSuchElementException: No value bound

huanghao495430759 commented on issue #9741:
URL: https://github.com/apache/shardingsphere/issues/9741#issuecomment-802583255


   Hi,you can looking doc.5.* :
   [https://shardingsphere.apache.org/document/current/cn/user-manual/shardingsphere-jdbc/configuration/spring-boot-starter/](url)
   
   `
   #sharding rules configuration
   spring.shardingsphere.sharding.tables.demo_one.actual-data-nodes = ds$->{0}.demo_one_$->{0..1}
   spring.shardingsphere.sharding.tables.demo_one.table-strategy.standard.sharding-column=sharding_id
   spring.shardingsphere.sharding.tables.demo_one.table-strategy.standard.sharding-algorithm-name=demo-one-table-strategy-inline
   
   #sharding algorithms configuration
   spring.shardingsphere.rules.sharding.sharding-algorithms.demo-one-table-strategy-inline.type=INLINE
   spring.shardingsphere.rules.sharding.sharding-algorithms.demo-one-table-strategy-inline.algorithm-expression=demo_one_$->{sharding_id % 2}
   
   #key generate strategy configuration
   spring.shardingsphere.rules.sharding.tables.demo_one.key-generate-strategy.column=sharding_id
   spring.shardingsphere.rules.sharding.tables.demo_one.key-generate-strategy.key-generator-name=snowflake
   
   #key generators configuration
   spring.shardingsphere.rules.sharding.key-generators.snowflake.type=SNOWFLAKE
   spring.shardingsphere.rules.sharding.key-generators.snowflake.props.worker-id=
   `


-- 
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:
users@infra.apache.org