feat: 优化文件上传配置,统一使用 undertow 服务器设置

- 在 server 配置中新增 undertow.max-http-post-size 参数
- 将 multipart 文件上传大小限制改为引用 undertow 服务器配置
- 保持文件上传大小限制为 100MB,提高配置一致性
This commit is contained in:
PIGCLOUD committed 2026-03-08 15:05:45 +08:00
1 parent 191efaad40
commit ef13df4f79
2 files changed
+12 -4

No files matched your search

+4 -2
View File
@@ -2,6 +2,8 @@ server:
port: 9999
servlet:
context-path: /admin
undertow:
max-http-post-size: 100MB
spring:
application:
@@ -12,8 +14,8 @@ spring:
# 上传文件大小限制
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
max-file-size: ${server.undertow.max-http-post-size}
max-request-size: ${server.undertow.max-http-post-size}
cloud:
discovery:
enabled: false