| 类 | 说明 |
|---|---|
| DataSourceHolder | |
| DynamicDataSource | |
| DynamicDataSourceRegister |
系统启动时解析多数据源配置
需要在启动类上注解 @org.springframework.context.annotation.Import(DynamicDataSourceRegister.class)
注意这时spring上下文还没有初始化完成,不要调用spring context BeanFactory
|
| DynamicDattaSourceAspect |
| 注释类型 | 说明 |
|---|---|
| TargetDataSource |
Copyright © 2023. All rights reserved.