springboot的初始化合成一个AutoConfiguration

This commit is contained in:
bryan31
2020-10-25 23:52:52 +08:00
parent 68543a2ca5
commit fe1d3fc63d
2 changed files with 5 additions and 3 deletions

View File

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