|
@@ -75,9 +75,15 @@ public class ZskkConfig extends JFinalConfig {
|
|
|
me.add(druidPluginConnected);
|
|
|
|
|
|
// 配置ActiveRecord插件
|
|
|
-// ActiveRecordPlugin arpConnected = new ActiveRecordPlugin("connected", druidPluginConnected);
|
|
|
-// arpConnected.setDialect(new SqlServerDialect());
|
|
|
-// me.add(arpConnected);
|
|
|
+ try {
|
|
|
+ ActiveRecordPlugin arpConnected = new ActiveRecordPlugin("connected", druidPluginConnected);
|
|
|
+ arpConnected.setDialect(new SqlServerDialect());
|
|
|
+ me.add(arpConnected);
|
|
|
+ } catch (Exception e) {
|
|
|
+ // TODO: handle exception
|
|
|
+ System.out.println(e.toString());
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
// Cron4jPlugin cpData = new Cron4jPlugin();
|
|
|
// cpData.addTask("*/25 * * * *", new DataTask());
|