自动化立体仓库 - WMS系统
zhang
2025-05-23 2e0d98030100f7c201c50a94073f33c22082f24c
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;
    }
}