From 5e5fe434e2e83f234567153c9f6a4c3b39a02e17 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期四, 18 一月 2024 18:35:07 +0800 Subject: [PATCH] update 删除多余注解 --- ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java b/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java index 282f1bf..d6d986c 100644 --- a/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java +++ b/ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java @@ -25,8 +25,10 @@ webSocketDeploymentInfo.setBuffers(new DefaultByteBufferPool(false, 512)); deploymentInfo.addServletContextAttribute("io.undertow.websockets.jsr.WebSocketDeploymentInfo", webSocketDeploymentInfo); // 浣跨敤铏氭嫙绾跨▼ 瑙i櫎涓嬫柟娉ㄩ噴 浠呴檺jdk21 -// if (SpringUtils.getProperty("spring.threads.virtual.enabled", Boolean.class, false)) { -// deploymentInfo.setExecutor(Executors.newVirtualThreadPerTaskExecutor()); +// if (SpringUtils.isVirtual()) { +// ExecutorService executor = Executors.newVirtualThreadPerTaskExecutor(); +// deploymentInfo.setExecutor(executor); +// deploymentInfo.setAsyncExecutor(executor); // } }); } -- Gitblit v1.9.3