Commit e9a07845 authored by 李德才's avatar 李德才

修改Model加载时机

parent 62cdfd59
...@@ -180,16 +180,13 @@ public class MainConfig extends JFinalConfig { ...@@ -180,16 +180,13 @@ public class MainConfig extends JFinalConfig {
String configPath = PathKit.getRootClassPath() + "/DBUpdate/"; String configPath = PathKit.getRootClassPath() + "/DBUpdate/";
DBService dbService = new DBService(); DBService dbService = new DBService();
dbService.upgrade(configPath, dbType); dbService.upgrade(configPath, dbType);
// 如果使用了JFinal Model 生成器 生成了BaseModel 把下面注释解开即可
_MappingKit.mapping(arp);
// 添加到插件列表中 // 添加到插件列表中
me.add(dbPlugin); me.add(dbPlugin);
me.add(arp); me.add(arp);
// 配置Redis信息,自动判断单实例和集群并加入JFinal插件列表 // 配置Redis信息,自动判断单实例和集群并加入JFinal插件列表
new RedisConfig(me, p); new RedisConfig(me, p);
// 如果使用了JFinal Model 生成器 生成了BaseModel 把下面注释解开即可
_MappingKit.mapping(arp);
// 添加定时任务 // 添加定时任务
me.add(new Cron4jPlugin(PropKit.append("task.properties"))); me.add(new Cron4jPlugin(PropKit.append("task.properties")));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment