自动化立体仓库 - WMS系统
1
zhang
2025-06-03 6d3b7e69524cdc6fd4c44fe9f37661a19a56c6ff
1
2
3
4
5
6
7
8
9
10
11
package com.zy.common.config.ds;
 
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
 
public class DynamicDataSource  extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        DataSourceType.DataBaseType dataBaseType = DataSourceType.getDataBaseType();
        return dataBaseType;
    }
}