|
|
|
@ -56,6 +56,7 @@ import org.springframework.util.unit.DataSize;
|
|
|
|
|
* @author Brian Clozel
|
|
|
|
|
* @author Olivier Lamy
|
|
|
|
|
* @author Chentao Qu
|
|
|
|
|
* @author Rafiullah Hamedy
|
|
|
|
|
* @since 1.0.0
|
|
|
|
|
*/
|
|
|
|
|
@ConfigurationProperties(prefix = "server", ignoreUnknownFields = true)
|
|
|
|
@ -335,14 +336,14 @@ public class ServerProperties {
|
|
|
|
|
private int minSpareThreads = 10;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Maximum size of the HTTP post content.
|
|
|
|
|
* Maximum size of the HTTP message header.
|
|
|
|
|
*/
|
|
|
|
|
private DataSize maxHttpPostSize = DataSize.ofMegabytes(2);
|
|
|
|
|
private DataSize maxHttpHeaderSize = DataSize.ofBytes(0);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Maximum size of the HTTP message header.
|
|
|
|
|
* Maximum size of the form content in any HTTP post request.
|
|
|
|
|
*/
|
|
|
|
|
private DataSize maxHttpHeaderSize = DataSize.ofBytes(0);
|
|
|
|
|
private DataSize maxHttpFormPostSize = DataSize.ofMegabytes(2);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Maximum amount of request body to swallow.
|
|
|
|
@ -413,12 +414,23 @@ public class ServerProperties {
|
|
|
|
|
this.minSpareThreads = minSpareThreads;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
@DeprecatedConfigurationProperty(replacement = "server.tomcat.max-http-form-post-size")
|
|
|
|
|
public DataSize getMaxHttpPostSize() {
|
|
|
|
|
return this.maxHttpPostSize;
|
|
|
|
|
return this.maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
public void setMaxHttpPostSize(DataSize maxHttpPostSize) {
|
|
|
|
|
this.maxHttpPostSize = maxHttpPostSize;
|
|
|
|
|
this.maxHttpFormPostSize = maxHttpPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataSize getMaxHttpFormPostSize() {
|
|
|
|
|
return this.maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaxHttpFormPostSize(DataSize maxHttpFormPostSize) {
|
|
|
|
|
this.maxHttpFormPostSize = maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Accesslog getAccesslog() {
|
|
|
|
@ -746,9 +758,9 @@ public class ServerProperties {
|
|
|
|
|
private final Accesslog accesslog = new Accesslog();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Maximum size of the HTTP post or put content.
|
|
|
|
|
* Maximum size of the form content in any HTTP post request.
|
|
|
|
|
*/
|
|
|
|
|
private DataSize maxHttpPostSize = DataSize.ofBytes(200000);
|
|
|
|
|
private DataSize maxHttpFormPostSize = DataSize.ofBytes(200000);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Number of acceptor threads to use. When the value is -1, the default, the
|
|
|
|
@ -771,12 +783,23 @@ public class ServerProperties {
|
|
|
|
|
return this.accesslog;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
@DeprecatedConfigurationProperty(replacement = "server.jetty.max-http-form-post-size")
|
|
|
|
|
public DataSize getMaxHttpPostSize() {
|
|
|
|
|
return this.maxHttpPostSize;
|
|
|
|
|
return this.maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Deprecated
|
|
|
|
|
public void setMaxHttpPostSize(DataSize maxHttpPostSize) {
|
|
|
|
|
this.maxHttpPostSize = maxHttpPostSize;
|
|
|
|
|
this.maxHttpFormPostSize = maxHttpPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public DataSize getMaxHttpFormPostSize() {
|
|
|
|
|
return this.maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setMaxHttpFormPostSize(DataSize maxHttpFormPostSize) {
|
|
|
|
|
this.maxHttpFormPostSize = maxHttpFormPostSize;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Integer getAcceptors() {
|
|
|
|
|