fangg2021 opened a new issue #14479:
URL: https://github.com/apache/shardingsphere/issues/14479


   ShardingSphere > User Manual > ShardingSphere-JDBC > Configuration Manual > 
Spring Boot Starter Configuration > Mixed Rules
   
   ***
   # Sharding algorithm configuration
   
spring.shardingsphere.rules.sharding.sharding-algorithms.default-database-strategy-inline.type=INLINE
   # The enumeration value of `ds_$->{user_id % 2}` is the name of the logical 
data source configured with readwrite-splitting
   
spring.shardingsphere.rules.sharding.sharding-algorithms.default-database-strategy-inline.algorithm-expression=ds$->{user_id
 % 2}
   
spring.shardingsphere.rules.sharding.sharding-algorithms.user-table-strategy-inline.type=INLINE
   
spring.shardingsphere.rules.sharding.sharding-algorithms.user-table-strategy-inline.algorithm-expression=t_user_$->{user_id
 % 2}
   
   ***
   
   that "user-table-strategy-inline.algorithm-expression" should be 
"user-table-strategy-inline.**props**.algorithm-expression"
   


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