mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-06-10 03:07:32 +08:00
bug #I40VPB 关于LiteflowExecutorAutoConfiguration中的shutdown bean名称
This commit is contained in:
@@ -11,9 +11,9 @@ import java.util.concurrent.ExecutorService;
|
||||
* 执行清理工作
|
||||
* @author Bryan.Zhang
|
||||
*/
|
||||
public class Shutdown {
|
||||
public class LiteFlowExecutorPoolShutdown {
|
||||
|
||||
private static final Logger LOG = LoggerFactory.getLogger(Shutdown.class);
|
||||
private static final Logger LOG = LoggerFactory.getLogger(LiteFlowExecutorPoolShutdown.class);
|
||||
|
||||
@PreDestroy
|
||||
public void destroy() throws Exception {
|
||||
@@ -2,7 +2,7 @@ package com.yomahub.liteflow.springboot;
|
||||
|
||||
import com.yomahub.liteflow.property.LiteflowConfig;
|
||||
import com.yomahub.liteflow.util.ExecutorHelper;
|
||||
import com.yomahub.liteflow.util.Shutdown;
|
||||
import com.yomahub.liteflow.util.LiteFlowExecutorPoolShutdown;
|
||||
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
|
||||
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
|
||||
@@ -30,7 +30,7 @@ public class LiteflowExecutorAutoConfiguration {
|
||||
}
|
||||
|
||||
@Bean
|
||||
public Shutdown shutdown() {
|
||||
return new Shutdown();
|
||||
public LiteFlowExecutorPoolShutdown liteFlowExecutorPoolShutdown() {
|
||||
return new LiteFlowExecutorPoolShutdown();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,6 +33,6 @@
|
||||
<property name="liteflowConfig" ref="liteflowConfig"/>
|
||||
</bean>
|
||||
|
||||
<bean id="whenExecutors" class="com.yomahub.liteflow.util.Shutdown"/>
|
||||
<bean id="whenExecutors" class="com.yomahub.liteflow.util.LiteFlowExecutorPoolShutdown"/>
|
||||
|
||||
</beans>
|
||||
|
||||
Reference in New Issue
Block a user