bug #I40VPB 关于LiteflowExecutorAutoConfiguration中的shutdown bean名称

This commit is contained in:
bryan31
2021-07-23 18:42:21 +08:00
parent ebc5d812f1
commit 95777575c0
3 changed files with 6 additions and 6 deletions

View File

@@ -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 {

View File

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

View File

@@ -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>