From 05880981f822f554bcb03983a21322bf15a9c8b9 Mon Sep 17 00:00:00 2001 From: 疯狂的狮子Li <15040126243@163.com> Date: 星期日, 14 一月 2024 00:53: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