mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-16 04:52:13 +08:00
springboot的初始化合成一个AutoConfiguration
This commit is contained in:
@@ -6,9 +6,12 @@ import javax.annotation.Resource;
|
||||
|
||||
public class LiteflowExecutorInit implements InitializingBean {
|
||||
|
||||
@Resource
|
||||
private FlowExecutor flowExecutor;
|
||||
|
||||
public LiteflowExecutorInit(FlowExecutor flowExecutor) {
|
||||
this.flowExecutor = flowExecutor;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void afterPropertiesSet() throws Exception {
|
||||
flowExecutor.init();
|
||||
|
||||
Reference in New Issue
Block a user