You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when i use sharding-jdbc-spring-boot-starter 4.1.1
i can get the tableRules @bean
public MMPShardingRule mmpShardingRule(ShardingDataSource shardingDataSource) {
ShardingRule rule = shardingDataSource.getRuntimeContext().getRule();
Collection tableRules = rule.getTableRules();
...
}
while after upgrade to 5.x version
there is no function getRuntimeContext in ShardingSphereDataSource
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
when i use sharding-jdbc-spring-boot-starter 4.1.1
i can get the tableRules
@bean
public MMPShardingRule mmpShardingRule(ShardingDataSource shardingDataSource) {
ShardingRule rule = shardingDataSource.getRuntimeContext().getRule();
Collection tableRules = rule.getTableRules();
...
}
while after upgrade to 5.x version
there is no function getRuntimeContext in ShardingSphereDataSource
Beta Was this translation helpful? Give feedback.
All reactions