mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-21 09:18:10 +08:00
优化springboot的自动装配
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package com.yomahub.liteflow.springboot;
|
||||
package com.yomahub.liteflow.springboot.config;
|
||||
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.util.ExecutorHelper;
|
||||
@@ -1,10 +1,11 @@
|
||||
package com.yomahub.liteflow.springboot;
|
||||
package com.yomahub.liteflow.springboot.config;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.yomahub.liteflow.core.FlowExecutor;
|
||||
import com.yomahub.liteflow.monitor.MonitorBus;
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.spring.ComponentScanner;
|
||||
import com.yomahub.liteflow.springboot.LiteflowExecutorInit;
|
||||
import com.yomahub.liteflow.util.SpringAware;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
@@ -1,6 +1,8 @@
|
||||
package com.yomahub.liteflow.springboot;
|
||||
package com.yomahub.liteflow.springboot.config;
|
||||
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.springboot.LiteflowMonitorProperty;
|
||||
import com.yomahub.liteflow.springboot.LiteflowProperty;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
import org.springframework.boot.context.properties.EnableConfigurationProperties;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
@@ -14,7 +16,7 @@ import org.springframework.context.annotation.PropertySource;
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
@Configuration
|
||||
@EnableConfigurationProperties({LiteflowProperty.class,LiteflowMonitorProperty.class})
|
||||
@EnableConfigurationProperties({LiteflowProperty.class, LiteflowMonitorProperty.class})
|
||||
@PropertySource(
|
||||
name = "Liteflow Default Properties",
|
||||
value = "classpath:/META-INF/liteflow-default.properties")
|
||||
Reference in New Issue
Block a user