mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-01-03 12:05:28 +08:00
Merge remote-tracking branch 'origin/master' into springboot3
# Conflicts: # jeecg-boot/db/tables_nacos.sql
This commit is contained in:
@ -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();
|
||||
|
||||
@ -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" +
|
||||
"----------------------------------------------------------");
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -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:
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
server:
|
||||
port: 8080
|
||||
undertow:
|
||||
decode-url: true # 启用URL解码
|
||||
worker-threads: 16
|
||||
buffers:
|
||||
websocket: 8192
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
server:
|
||||
port: 8080
|
||||
undertow:
|
||||
decode-url: true # 启用URL解码
|
||||
# 4核CPU标准配置
|
||||
worker-threads: 16
|
||||
buffers:
|
||||
|
||||
Reference in New Issue
Block a user