mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 12:32:09 +08:00
提供idea配置的自动化提示功能
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user