diff --git a/liteflow-core/pom.xml b/liteflow-core/pom.xml index 27f1febce..7ea088f6b 100644 --- a/liteflow-core/pom.xml +++ b/liteflow-core/pom.xml @@ -5,12 +5,11 @@ liteflow-core jar 4.0.0 - 2.1.0 com.thebeastshop liteflow - 2.1.0 + 2.1.1 diff --git a/liteflow-spring-boot-starter/pom.xml b/liteflow-spring-boot-starter/pom.xml index 8be0f0f6e..5020aa5a5 100644 --- a/liteflow-spring-boot-starter/pom.xml +++ b/liteflow-spring-boot-starter/pom.xml @@ -5,7 +5,7 @@ liteflow com.thebeastshop - 2.1.0 + 2.1.1 4.0.0 diff --git a/liteflow-spring-boot-starter/src/main/java/com/thebeastshop/liteflow/springboot/LiteflowExecutorInit.java b/liteflow-spring-boot-starter/src/main/java/com/thebeastshop/liteflow/springboot/LiteflowExecutorInit.java index 34bae469b..30c504323 100644 --- a/liteflow-spring-boot-starter/src/main/java/com/thebeastshop/liteflow/springboot/LiteflowExecutorInit.java +++ b/liteflow-spring-boot-starter/src/main/java/com/thebeastshop/liteflow/springboot/LiteflowExecutorInit.java @@ -1,15 +1,16 @@ package com.thebeastshop.liteflow.springboot; import com.thebeastshop.liteflow.core.FlowExecutor; -import org.springframework.context.annotation.Bean; -import org.springframework.context.annotation.Configuration; +import org.springframework.beans.factory.InitializingBean; +import javax.annotation.Resource; -@Configuration -public class LiteflowExecutorInit { +public class LiteflowExecutorInit implements InitializingBean { - @Bean - public String initExecutor(FlowExecutor flowExecutor){ + @Resource + private FlowExecutor flowExecutor; + + @Override + public void afterPropertiesSet() throws Exception { flowExecutor.init(); - return "init"; } } diff --git a/liteflow-test/pom.xml b/liteflow-test/pom.xml index 1a925c474..714c9d5a3 100644 --- a/liteflow-test/pom.xml +++ b/liteflow-test/pom.xml @@ -26,7 +26,7 @@ com.thebeastshop liteflow-spring-boot-starter - 2.1.0 + 2.1.1 diff --git a/pom.xml b/pom.xml index 2f841eb9d..00fda1615 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ liteflow pom 4.0.0 - 2.1.0 + 2.1.1 UTF-8