/**
 * Copyright (c) 2018  All rights reserved.
 *
 *
 *
 *
 */

package com.maxbox.datasource.config;

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

/**
 * 多数据源
 *
 * @author pgh xiaopeng2260@sina.com
 */
public class DynamicDataSource extends AbstractRoutingDataSource {

    @Override
    protected Object determineCurrentLookupKey() {
        return DynamicContextHolder.peek();
    }

}
