【发布时间】:2020-10-22 18:34:40
【问题描述】:
我有一个带有 Spring Web Services 的 Spring Boot 2 应用程序,我尝试限制传入请求的最大大小。我尝试使用以下属性,但它不起作用。
server.tomcat.max-http-form-post-size
spring.servlet.multipart.max-request-size
spring.servlet.multipart.max-file-size
您知道使用 Spring Web 服务限制 Spring Boot 2 应用程序中传入请求的最大大小的任何可行解决方案吗? 在 Spring Web Services documentation 中有信息表明 Spring Web Services 提供了基于 Sun 的 JRE 1.6 HTTP 服务器的传输。也许是个问题?
【问题讨论】:
-
Spring Boot 2 还是 1 ?
-
这是 Spring Boot 2
-
这能回答你的问题吗? How to set the max size of upload file
-
不幸的是,它没有。
标签: java spring spring-boot tomcat spring-ws