mirror of
https://gitee.com/nutz/nutzboot.git
synced 2024-11-30 02:38:28 +08:00
update: 注入多数据源的方法改改名字
This commit is contained in:
parent
6a1cd4975b
commit
27f0816236
@ -113,7 +113,7 @@ public class DataSourceStarter {
|
||||
|
||||
public static DataSource createManyDataSource(Ioc ioc, PropertiesProxy conf, String prefix) {
|
||||
try {
|
||||
return createDataSource(ioc, conf, prefix);
|
||||
return createSlaveDataSource(ioc, conf, prefix);
|
||||
} catch (Exception e) {
|
||||
throw new RuntimeException("datasource init error", e);
|
||||
}
|
||||
|
@ -203,7 +203,7 @@ public class NutDaoStarter {
|
||||
String name = match.group(1);
|
||||
String prefix_name = "jdbc.many." + name + ".";
|
||||
try {
|
||||
DataSource manyDataSource = DataSourceStarter.createSlaveDataSource(ioc, conf, prefix_name);
|
||||
DataSource manyDataSource = DataSourceStarter.createManyDataSource(ioc, conf, prefix_name);
|
||||
NutDao nutDao = new NutDao();
|
||||
nutDao.setDataSource(manyDataSource);
|
||||
// 处理对应的从库
|
||||
|
Loading…
Reference in New Issue
Block a user