소스 검색

【更新】solon 版本升为 2.0.0

noear 2 년 전
부모
커밋
269cd91dfe
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      liteflow-solon-plugin/src/main/java/com/yomahub/liteflow/solon/integration/XPluginImpl.java

+ 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;