mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-21 01:28:10 +08:00
enhancement #I4EXCP 新增自定义关闭/启动 Banner
This commit is contained in:
@@ -41,6 +41,9 @@ public class LiteflowProperty {
|
||||
//重试次数
|
||||
private int retryCount;
|
||||
|
||||
//是否打印liteflow banner
|
||||
private boolean printBanner;
|
||||
|
||||
public boolean isEnable() {
|
||||
return enable;
|
||||
}
|
||||
@@ -120,4 +123,12 @@ public class LiteflowProperty {
|
||||
public void setZkNode(String zkNode) {
|
||||
this.zkNode = zkNode;
|
||||
}
|
||||
|
||||
public boolean isPrintBanner() {
|
||||
return printBanner;
|
||||
}
|
||||
|
||||
public void setPrintBanner(boolean printBanner) {
|
||||
this.printBanner = printBanner;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -29,8 +29,8 @@ import org.springframework.context.annotation.Import;
|
||||
public class LiteflowMainAutoConfiguration {
|
||||
|
||||
@Bean
|
||||
public ComponentScanner componentScanner(){
|
||||
return new ComponentScanner();
|
||||
public ComponentScanner componentScanner(LiteflowConfig liteflowConfig){
|
||||
return new ComponentScanner(liteflowConfig);
|
||||
}
|
||||
|
||||
@Bean
|
||||
|
||||
@@ -39,6 +39,7 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setSupportMultipleType(property.isSupportMultipleType());
|
||||
liteflowConfig.setRetryCount(property.getRetryCount());
|
||||
liteflowConfig.setZkNode(property.getZkNode());
|
||||
liteflowConfig.setPrintBanner(property.isPrintBanner());
|
||||
return liteflowConfig;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user