采用枚举类型
This commit is contained in:
@ -21,7 +21,7 @@ public class DynamicDataSource extends AbstractRoutingDataSource
|
||||
@Override
|
||||
protected Object determineCurrentLookupKey()
|
||||
{
|
||||
return DynamicDataSourceContextHolder.getDB();
|
||||
return DynamicDataSourceContextHolder.getDateSoureType();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user