提供idea配置的自动化提示功能

This commit is contained in:
bryan.zhang
2020-07-27 17:58:23 +08:00
parent 5495d40297
commit d8c3c757d8
9 changed files with 13 additions and 14 deletions

View File

@@ -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
```

View File

@@ -9,7 +9,7 @@
<parent>
<groupId>com.yomahub</groupId>
<artifactId>liteflow</artifactId>
<version>2.3.1</version>
<version>2.3.2</version>
</parent>
<dependencies>

View File

@@ -10,7 +10,7 @@
<parent>
<artifactId>liteflow</artifactId>
<groupId>com.yomahub</groupId>
<version>2.3.1</version>
<version>2.3.2</version>
</parent>
<dependencies>

View File

@@ -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

View File

@@ -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() {

View File

@@ -1,5 +1,4 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
com.yomahub.liteflow.springboot.LiteflowProperty,\
com.yomahub.liteflow.springboot.LiteflowAutoConfiguration,\
com.yomahub.liteflow.springboot.LiteflowExecutorInit

View File

@@ -9,7 +9,7 @@
<parent>
<artifactId>liteflow</artifactId>
<groupId>com.yomahub</groupId>
<version>2.3.1</version>
<version>2.3.2</version>
</parent>
<dependencies>

View File

@@ -9,7 +9,7 @@
<parent>
<artifactId>liteflow</artifactId>
<groupId>com.yomahub</groupId>
<version>2.3.1</version>
<version>2.3.2</version>
</parent>
<dependencyManagement>

View File

@@ -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>