二级更新计划新增软推荐,计划录入和实绩内容添加入场钢卷号信息

This commit is contained in:
2026-03-20 14:36:21 +08:00
parent bcb33f3033
commit 12b2cc7e20
15 changed files with 184 additions and 3 deletions

View File

@@ -49,6 +49,14 @@ public class DruidConfig
return druidProperties.dataSource(dataSource);
}
@Bean
@ConfigurationProperties("spring.datasource.druid.l3")
public DataSource l3DataSource(DruidProperties druidProperties)
{
DruidDataSource dataSource = DruidDataSourceBuilder.create().build();
return druidProperties.dataSource(dataSource);
}
@Bean(name = "dynamicDataSource")
@Primary
public DynamicDataSource dataSource(DataSource masterDataSource)
@@ -56,6 +64,7 @@ public class DruidConfig
Map<Object, Object> targetDataSources = new HashMap<>();
targetDataSources.put(DataSourceType.MASTER.name(), masterDataSource);
setDataSource(targetDataSources, DataSourceType.SLAVE.name(), "slaveDataSource");
setDataSource(targetDataSources, DataSourceType.L3.name(), "l3DataSource");
return new DynamicDataSource(masterDataSource, targetDataSources);
}