修复springboot下自动注入没加首次判断而导致的二次加载

This commit is contained in:
everywhere.z
2023-10-27 15:25:22 +08:00
parent 915e23597a
commit 91a15af3c0

View File

@@ -1,6 +1,7 @@
package com.yomahub.liteflow.springboot;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.FlowBus;
import org.springframework.beans.factory.InitializingBean;
/**
@@ -19,6 +20,7 @@ public class LiteflowExecutorInit implements InitializingBean {
@Override
public void afterPropertiesSet() throws Exception {
flowExecutor.init(true);
FlowBus.needInit();
}
}