【更新】solon 版本升为 2.0.0

This commit is contained in:
noear 2023-02-02 15:24:08 +08:00
parent c3b4572ba2
commit 269cd91dfe
1 changed files with 2 additions and 2 deletions

View File

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