mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-14 12:12:08 +08:00
优化对spring boot支持的配置
This commit is contained in:
@@ -5,12 +5,11 @@
|
||||
<artifactId>liteflow-core</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>2.1.0</version>
|
||||
|
||||
<parent>
|
||||
<groupId>com.thebeastshop</groupId>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<version>2.1.1</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<parent>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<groupId>com.thebeastshop</groupId>
|
||||
<version>2.1.0</version>
|
||||
<version>2.1.1</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
|
||||
@@ -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";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<dependency>
|
||||
<groupId>com.thebeastshop</groupId>
|
||||
<artifactId>liteflow-spring-boot-starter</artifactId>
|
||||
<version>2.1.0</version>
|
||||
<version>2.1.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
|
||||
Reference in New Issue
Block a user