From 396718bc5ec8ada1623eb67dd0edc2d5cacf8793 Mon Sep 17 00:00:00 2001 From: JEECG <445654970@qq.com> Date: Thu, 17 Jul 2025 15:07:33 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E9=97=AE=E9=A2=98=EF=BC=9A[i?= =?UTF-8?q?ssues/8558]=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/jeecg/config/init/UndertowConfiguration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/config/init/UndertowConfiguration.java b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/config/init/UndertowConfiguration.java index 3fd059aaf..77b732c47 100644 --- a/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/config/init/UndertowConfiguration.java +++ b/jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/config/init/UndertowConfiguration.java @@ -1,5 +1,6 @@ package org.jeecg.config.init; +import io.undertow.UndertowOptions; import io.undertow.server.DefaultByteBufferPool; import io.undertow.server.handlers.BlockingHandler; import io.undertow.websockets.jsr.WebSocketDeploymentInfo; @@ -26,6 +27,11 @@ public class UndertowConfiguration implements WebServerFactoryCustomizer { + builder.setServerOption(UndertowOptions.MAX_HEADER_SIZE, 65536); // header 最大64KB + builder.setServerOption(UndertowOptions.MAX_PARAMETERS, 10000); // 最大参数数 + }); factory.addDeploymentInfoCustomizers(deploymentInfo -> { WebSocketDeploymentInfo webSocketDeploymentInfo = new WebSocketDeploymentInfo();