From 9ef140f07f3dfd83007167658cce9507bb176aa4 Mon Sep 17 00:00:00 2001 From: zhengpingzhong Date: Mon, 19 Jan 2026 17:35:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4AsyncListenableTaskExecutor?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=EF=BC=8C=E5=AE=98=E6=96=B9commit(38727db7926?= =?UTF-8?q?ea470ae81eee6c95123123a3035cc)=E5=B7=B2=E7=BB=8F=E2=80=9CReplac?= =?UTF-8?q?e=20the=20use=20of=20the=20deprecated=20AsyncListenableTaskExec?= =?UTF-8?q?utor=20with=20AsyncTaskExecutor=E2=80=9D=EF=BC=8C=E4=B8=94Proce?= =?UTF-8?q?ssEngineAutoConfiguration=E4=BC=9A=E6=B3=A8=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/BpmFlowableConfiguration.java | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/config/BpmFlowableConfiguration.java b/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/config/BpmFlowableConfiguration.java index e79437b43..8a3ddbce1 100644 --- a/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/config/BpmFlowableConfiguration.java +++ b/yudao-module-bpm/yudao-module-bpm-server/src/main/java/cn/iocoder/yudao/module/bpm/framework/flowable/config/BpmFlowableConfiguration.java @@ -15,8 +15,6 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean import org.springframework.context.ApplicationEventPublisher; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; -import org.springframework.core.task.AsyncListenableTaskExecutor; -import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor; import java.util.List; @@ -28,25 +26,6 @@ import java.util.List; @Configuration(proxyBeanMethods = false) public class BpmFlowableConfiguration { - /** - * 参考 {@link org.flowable.spring.boot.FlowableJobConfiguration} 类,创建对应的 AsyncListenableTaskExecutor Bean - * - * 如果不创建,会导致项目启动时,Flowable 报错的问题 - */ - @Bean(name = "applicationTaskExecutor") - @ConditionalOnMissingBean(name = "applicationTaskExecutor") - public AsyncListenableTaskExecutor taskExecutor() { - ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); - executor.setCorePoolSize(8); - executor.setMaxPoolSize(8); - executor.setQueueCapacity(100); - executor.setThreadNamePrefix("flowable-task-Executor-"); - executor.setAwaitTerminationSeconds(30); - executor.setWaitForTasksToCompleteOnShutdown(true); - executor.setAllowCoreThreadTimeOut(true); - executor.initialize(); - return executor; - } /** * BPM 模块的 ProcessEngineConfigurationConfigurer 实现类: