【7.1.1】更新多数据源的加载顺序

pull/22/head
fengshuonan 2021-08-04 10:22:22 +08:00
parent 5895d7d24e
commit 42876b9cd1
1 changed files with 7 additions and 0 deletions

View File

@ -26,9 +26,14 @@ package cn.stylefeng.roses.kernel.dsctn.starter;
import cn.stylefeng.roses.kernel.dsctn.DynamicDataSource;
import cn.stylefeng.roses.kernel.dsctn.aop.MultiSourceExchangeAop;
import org.springframework.boot.autoconfigure.AutoConfigureBefore;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import javax.sql.DataSource;
/**
* DAO
* <p>
@ -38,6 +43,8 @@ import org.springframework.context.annotation.Configuration;
* @date 2020/11/30 22:24
*/
@Configuration
@AutoConfigureBefore(DataSourceAutoConfiguration.class)
@ConditionalOnMissingBean(DataSource.class)
public class GunsDataSourceContainerAutoConfiguration {
/**