All Downloads are FREE. Search and download functionalities are using the official Maven repository.

top.lshaci.framework.mybatis.datasource.DynamicDataSource Maven / Gradle / Ivy

package top.lshaci.framework.mybatis.datasource;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * Dynamic DataSource
 * 
 * @author lshaci
 * @version 0.0.1
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

	@Override
	protected Object determineCurrentLookupKey() {
		return DynamicDataSourceContextHolder.getDataSourceType();
	}
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy