gpt4 book ai didi

How to set up max post size for Tomcat in Spring boot(如何在Spring Boot中为Tomcat设置最大POST大小)

转载 作者:bug小助手 更新时间:2023-10-25 12:00:19 24 4
gpt4 key购买 nike



I have a client server application using Spring Shell on the client side and Spring boot(2.5.7) on the server side. We use Tomcat server and use TomcatServletWebServerFactory to create it. I want to provide a specific value for max post size to the server programmatically. I read some articles and can see that Connector class can be used to customize the server. However I am not finding a suitable code. Can someone please guide?

我有一个客户端服务器应用程序,在客户端使用Spring Shell,在服务器端使用Spring Boot(2.5.7)。我们使用Tomcat服务器并使用TomcatServletWebServerFactory来创建它。我想以编程方式向服务器提供最大POST大小的特定值。我读了一些文章,可以看到可以使用Connector类来定制服务器。然而,我没有找到合适的代码。有谁能带路吗?


更多回答
优秀答案推荐

Configure the following property (source)

配置以下属性(源)


server.tomcat.max-http-form-post-size

更多回答

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com