package com.emr.annotation;

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


/**
 * @ProjectName:
 * @Description:
 * @Param 传输参数
 * @Return
 * @Author: 曾文和
 * @CreateDate: 2020/1/17 12:02
 * @UpdateUser: 曾文和
 * @UpdateDate: 2020/1/17 12:02
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class DynamicDataSource  extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContextHolder.getDB();
    }
}
