From 339f85741f8e060a1fcb050830494d43bb9d8317 Mon Sep 17 00:00:00 2001 From: Simple <2424585654@qq.com> Date: 星期六, 06 一月 2024 18:20:21 +0800 Subject: [PATCH] fix: LoginHelper类 login方法 存在 重复代码 --- ruoyi-common/ruoyi-common-web/src/main/java/org/dromara/common/web/config/UndertowConfig.java | 4 ++++ 1 files changed, 4 insertions(+), 0 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 421ce6d..282f1bf 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 @@ -24,6 +24,10 @@ WebSocketDeploymentInfo webSocketDeploymentInfo = new WebSocketDeploymentInfo(); 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()); +// } }); } -- Gitblit v1.9.3