From 3a17abff5c03ae7e8142d298f196127f30b80256 Mon Sep 17 00:00:00 2001 From: "bryan.zhang" Date: Thu, 4 Apr 2019 14:57:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=AF=B9spring=20boot?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- liteflow-core/pom.xml | 3 +-- liteflow-spring-boot-starter/pom.xml | 2 +- .../liteflow/springboot/LiteflowExecutorInit.java | 15 ++++++++------- liteflow-test/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 12 insertions(+), 12 deletions(-) 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