cy
2022-06-27 161509b9f823511cf33041caaf25ce726999e39b
1
2
3
4
5
6
7
8
9
10
11
12
package cn.ksource.core.dsource;
 
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
 
public class DynamicDataSource extends AbstractRoutingDataSource {
 
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceSwitcher.getDataSource();
    }
 
}