提供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

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