dao.js中已经创建好了两个数据源且测试成功,现在希望在SetUp时创建表,那么如果做到为各自的DAO分别做创建表的动作
public class MainSetup implements Setup {
public void init(NutConfig conf) {
Ioc ioc = conf.getIoc();
Dao dao = ioc.get(Dao.class);
Dao dao2 = ioc.get(Dao.class);
Daos.createTablesInPackage(dao, "com.ifm.app", false);