joeywang310 opened a new issue #11056:
URL: https://github.com/apache/shardingsphere/issues/11056
**my yaml config**
`
sharding:
sharding-algorithms:
database_inline:
props:
algorithm-expression: ds_${user_id % 2}
type: INLINE
table_inline:
props:
algorithm-expression: t_order_${order_id % 2}
type: INLINE
balance_trade_record_db_class_based:
props:
strategy: COMPLEX
algorithm_class_name:
com.ypshengxian.account.server.infrastructure.config.shardingjdbc.BalanceDatabaseShardingAlgorithm
type: CLASS_BASED
balance_trade_record_table_class_based:
type: CLASS_BASED
props:
strategy: COMPLEX
algorithm_class_name:
com.ypshengxian.account.server.infrastructure.config.shardingjdbc.BalanceTableShardingAlgorithm
`
**source code**

**debug img**

As you can see from the picture, spring Environment is configured,
`
String propsPrefix = String.join("", prefix, each, ".props");
boolean existProps = PropertyUtil.containPropertyPrefix(this.environment,
propsPrefix);
`
existProps return **false**
--
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]