From d11856d3f02dc702f7d0d0f664fe151def044bd6 Mon Sep 17 00:00:00 2001 From: PIGCLOUD Date: Thu, 12 Feb 2026 15:19:02 +0800 Subject: [PATCH] =?UTF-8?q?refactor(pigx-common-core):=20=E9=87=8D?= =?UTF-8?q?=E5=91=BD=E5=90=8D=E5=BC=82=E6=AD=A5=E4=BB=BB=E5=8A=A1=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E5=99=A8=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 applicationTaskExecutor 方法重命名为 applicationAsyncTaskExecutor - 更新 AsyncSupportConfigurer 配置以使用新的方法名 - 保持线程池配置参数不变 --- .../pigx/common/core/config/WebCommonConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/WebCommonConfiguration.java b/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/WebCommonConfiguration.java index 8f1d3a5ca..3aae305c7 100644 --- a/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/WebCommonConfiguration.java +++ b/pigx-common/pigx-common-core/src/main/java/com/pig4cloud/pigx/common/core/config/WebCommonConfiguration.java @@ -59,7 +59,7 @@ public class WebCommonConfiguration implements WebMvcConfigurer { */ @Bean @Primary - public AsyncTaskExecutor applicationTaskExecutor() { + public AsyncTaskExecutor applicationAsyncTaskExecutor() { TaskExecutionProperties.Pool pool = taskExecutionProperties.getPool(); ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor(); executor.setCorePoolSize(pool.getCoreSize()); @@ -76,7 +76,7 @@ public class WebCommonConfiguration implements WebMvcConfigurer { @Override public void configureAsyncSupport(AsyncSupportConfigurer configurer) { - configurer.setTaskExecutor(applicationTaskExecutor()); + configurer.setTaskExecutor(applicationAsyncTaskExecutor()); } /**