当前位置:首页 > 数据库 > 正文

SpringBot添加多数据源mysql的验证方法

2020-02-13 数据库

package com.holytax.accenture_fp_in.datasource;

import javax.sql.DataSource;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.boot.autoconfigure.jdbc.DataSourceBuilder;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

/**

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/SQL/15348.html