Merge remote-tracking branch 'origin/springboot3' into springboot3_sas

This commit is contained in:
JEECG
2025-07-25 13:26:18 +08:00
17 changed files with 63 additions and 24 deletions

View File

@ -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<Underto
@Override
public void customize(UndertowServletWebServerFactory factory) {
// 设置 Undertow 服务器参数(底层网络配置)
factory.addBuilderCustomizers(builder -> {
builder.setServerOption(UndertowOptions.MAX_HEADER_SIZE, 65536); // header 最大64KB
builder.setServerOption(UndertowOptions.MAX_PARAMETERS, 10000); // 最大参数数
});
factory.addDeploymentInfoCustomizers(deploymentInfo -> {
WebSocketDeploymentInfo webSocketDeploymentInfo = new WebSocketDeploymentInfo();

View File

@ -46,7 +46,7 @@ public class JeecgSystemApplication extends SpringBootServletInitializer {
String path = oConvertUtils.getString(env.getProperty("server.servlet.context-path"));
log.info("\n----------------------------------------------------------\n\t" +
"Application Jeecg-Boot is running! Access URLs:\n\t" +
"Local: \t\thttp://localhost:" + port + path + "/doc.html\n\t" +
"Local: \t\thttp://localhost:" + port + path + "\n\t" +
"External: \thttp://" + ip + ":" + port + path + "/doc.html\n\t" +
"Swagger文档: \thttp://" + ip + ":" + port + path + "/doc.html\n" +
"----------------------------------------------------------");

View File

@ -1,6 +1,7 @@
server:
port: 8080
undertow:
decode-url: true # 启用URL解码
# max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz undertow该值默认为-1
worker-threads: 16 # 4核CPU标准配置
buffers:

View File

@ -1,6 +1,7 @@
server:
port: 8080
undertow:
decode-url: true # 启用URL解码
# max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz undertow该值默认为-1
worker-threads: 16 # 4核CPU标准配置
buffers:

View File

@ -1,6 +1,7 @@
server:
port: 8080
undertow:
decode-url: true # 启用URL解码
# max-http-post-size: 10MB # 平替 tomcat server.tomcat.max-swallow-siz undertow该值默认为-1
worker-threads: 16 # 4核CPU标准配置
buffers:

View File

@ -1,6 +1,7 @@
server:
port: 8080
undertow:
decode-url: true # 启用URL解码
worker-threads: 16
buffers:
websocket: 8192

View File

@ -1,6 +1,7 @@
server:
port: 8080
undertow:
decode-url: true # 启用URL解码
# 4核CPU标准配置
worker-threads: 16
buffers: