package com.ag.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import javax.sql.DataSource;

/**
 * @description: 主工程基础数据源
 * @author: WangN
 * @create: 2019-08-19
 */
//@Repository
public class BaseDataSourceCfg extends AbstractDataSourceProxy {

    //web工程配置的数据源beanName=dataSource
    @Autowired
    private DataSource dataSource;
    @Override
    public DataSource getMainDataSource() {
        return this.dataSource;
    }
}
