YYC
2023-07-19 e4b8ad94cc1f48b2e47c022f19e70cc68b1e925b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package com.ld.igds.conf;
 
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
 
/**
 * @author Andy
 */
public class MultipleDataSource extends AbstractRoutingDataSource {
 
    @Override
    protected Object determineCurrentLookupKey() {
       return DataSourceContextHolder.getDataSource();
    }
 
}