Просмотр исходного кода

【更新】solon 版本升为 2.0.0

noear 2 лет назад
Родитель
Сommit
269cd91dfe

+ 2 - 2
liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/integration/XPluginImpl.java

@@ -27,12 +27,12 @@ public class XPluginImpl implements Plugin {
         Properties defProps = Utils.loadProperties("META-INF/liteflow-default.properties");
         if (defProps != null && defProps.size() > 0) {
             defProps.forEach((k, v) -> {
-                context.getProps().putIfAbsent(k, v);
+                context.cfg().putIfAbsent(k, v);
             });
         }
 
         //是否启用
-        boolean enable = context.getProps().getBool("liteflow.enable", false);
+        boolean enable = context.cfg().getBool("liteflow.enable", false);
 
         if (!enable) {
             return;