update: 注入多数据源的方法改改名字

This commit is contained in:
Wendal Chen 2019-03-03 10:58:52 +08:00
parent 6a1cd4975b
commit 27f0816236
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);
// 处理对应的从库