Ver código fonte

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

everywhere.z 1 ano atrás
pai
commit
91a15af3c0

+ 2 - 0
liteflow-spring-boot-starter/src/main/java/com/yomahub/liteflow/springboot/LiteflowExecutorInit.java

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