add
This commit is contained in:
@ -103,7 +103,8 @@ public class DynamicDataSourceConfig {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (CollUtil.isEmpty(PrimaryDatasourceContext.getAll())) {
|
if (CollUtil.isEmpty(PrimaryDatasourceContext.getAll())) {
|
||||||
log.error("主系统配置数据源全部无效, 请检查 yml 中相关配置");
|
// 中止项目启动
|
||||||
|
throw new RuntimeException("主系统配置数据源全部无效, 请检查 yml 中相关配置");
|
||||||
}
|
}
|
||||||
|
|
||||||
// 其他数据源备用
|
// 其他数据源备用
|
||||||
|
Reference in New Issue
Block a user