springboot的初始化合成一个AutoConfiguration
This commit is contained in:
parent
68543a2ca5
commit
fe1d3fc63d
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
|
||||
com.yomahub.liteflow.springboot.LiteflowAutoConfiguration,\
|
||||
com.yomahub.liteflow.springboot.LiteflowExecutorInit
|
||||
com.yomahub.liteflow.springboot.LiteflowAutoConfiguration
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue