package com.crm.rely.backend.util;

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

/**
 * @Author houn
 * @Date 2024/12/24 14:00
 * @PackageName:com.crm.manager.configuration
 * @ClassName: DynamicRoutingDataSource
 * @Description: TODO
 */
public class DynamicRoutingDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicDataSourceContext.getDataSource();
    }
}