mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-13 11:14:38 +08:00
提供idea配置的自动化提示功能
This commit is contained in:
@@ -94,7 +94,7 @@ liteFlow提供了liteflow-spring-boot-starter依赖包,提供自动装配功
|
||||
在application.properties里加上配置地址后,就可以在容器中依赖拿到`FlowExecutor`实例
|
||||
|
||||
```properties
|
||||
liteflow.ruleSource=config/flow.xml
|
||||
liteflow.rule-source=config/flow.xml
|
||||
```
|
||||
|
||||
工程中的liteflow-test演示了如何在springboot下进行快速配置
|
||||
@@ -162,7 +162,7 @@ liteFlow支持把配置放在zk集群中,并支持实时修改流程
|
||||
## 4.2 Springboot配置
|
||||
|
||||
```properties
|
||||
liteflow.ruleSource=127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183
|
||||
liteflow.rule-source=127.0.0.1:2181,127.0.0.1:2182,127.0.0.1:2183
|
||||
```
|
||||
|
||||
|
||||
@@ -202,7 +202,7 @@ spring中需要改的地方还是执行器的配置,只需要在配置的路
|
||||
## 5.3 Springboot配置
|
||||
|
||||
```properties
|
||||
liteflow.ruleSource=com.yomahub.liteflow.test.TestCustomParser
|
||||
liteflow.rule-source=com.yomahub.liteflow.test.TestCustomParser
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<groupId>com.yomahub</groupId>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<version>2.3.2</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
<parent>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<groupId>com.yomahub</groupId>
|
||||
<version>2.3.1</version>
|
||||
<version>2.3.2</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -5,13 +5,15 @@ import com.yomahub.liteflow.core.FlowExecutor;
|
||||
import com.yomahub.liteflow.spring.ComponentScaner;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Configuration
|
||||
@ConditionalOnProperty(name = "liteflow.ruleSource")
|
||||
@EnableConfigurationProperties(LiteflowProperty.class)
|
||||
@ConditionalOnProperty(prefix = "liteflow", name = "rule-source")
|
||||
public class LiteflowAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package com.yomahub.liteflow.springboot;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.boot.context.properties.ConfigurationProperties;
|
||||
|
||||
@Configuration
|
||||
@ConfigurationProperties(prefix = "liteflow", ignoreUnknownFields = true)
|
||||
public class LiteflowProperty {
|
||||
|
||||
@Value("${liteflow.ruleSource}")
|
||||
private String ruleSource;
|
||||
|
||||
public String getRuleSource() {
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.yomahub.liteflow.springboot.LiteflowProperty,\
|
||||
com.yomahub.liteflow.springboot.LiteflowAutoConfiguration,\
|
||||
com.yomahub.liteflow.springboot.LiteflowExecutorInit
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<groupId>com.yomahub</groupId>
|
||||
<version>2.3.1</version>
|
||||
<version>2.3.2</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
<parent>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<groupId>com.yomahub</groupId>
|
||||
<version>2.3.1</version>
|
||||
<version>2.3.2</version>
|
||||
</parent>
|
||||
|
||||
<dependencyManagement>
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -5,7 +5,7 @@
|
||||
<groupId>com.yomahub</groupId>
|
||||
<artifactId>liteflow</artifactId>
|
||||
<packaging>pom</packaging>
|
||||
<version>2.3.1</version>
|
||||
<version>2.3.2</version>
|
||||
<name>liteflow</name>
|
||||
<description>a lightweight and practical micro-process framework</description>
|
||||
<url>https://github.com/bryan31/liteflow</url>
|
||||
|
||||
Reference in New Issue
Block a user