This commit is contained in:
2023-08-01 17:24:33 +08:00
parent 06f447cb98
commit 1be342922f

View File

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