Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
487f7310
Commit
487f7310
authored
Apr 05, 2016
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Polish contribution
parent
34eb3695
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
ServerProperties.java
...ingframework/boot/autoconfigure/web/ServerProperties.java
+3
-2
ServerPropertiesTests.java
...amework/boot/autoconfigure/web/ServerPropertiesTests.java
+1
-0
appendix-application-properties.adoc
...cs/src/main/asciidoc/appendix-application-properties.adoc
+1
-1
No files found.
spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/web/ServerProperties.java
View file @
487f7310
...
...
@@ -72,6 +72,7 @@ import org.springframework.util.StringUtils;
* @author Ivan Sopov
* @author Marcos Barbero
* @author Eddú Meléndez
* @author Quinten De Swaef
*/
@ConfigurationProperties
(
prefix
=
"server"
,
ignoreUnknownFields
=
true
)
public
class
ServerProperties
...
...
@@ -583,7 +584,7 @@ public class ServerProperties
/**
* Minimum amount of worker threads.
*/
private
int
minSpareThreads
=
0
;
//
Number of m
inimum spare threads in protocol handler
private
int
minSpareThreads
=
0
;
//
M
inimum spare threads in protocol handler
/**
* Maximum size in bytes of the HTTP message header.
...
...
@@ -604,7 +605,7 @@ public class ServerProperties
}
public
int
getMinSpareThreads
()
{
return
minSpareThreads
;
return
this
.
minSpareThreads
;
}
public
void
setMinSpareThreads
(
int
minSpareThreads
)
{
...
...
spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/web/ServerPropertiesTests.java
View file @
487f7310
...
...
@@ -62,6 +62,7 @@ import static org.mockito.Mockito.verify;
* @author Andy Wilkinson
* @author Phillip Webb
* @author Eddú Meléndez
* @author Quinten De Swaef
*/
public
class
ServerPropertiesTests
{
...
...
spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc
View file @
487f7310
...
...
@@ -204,7 +204,7 @@ content into your application; rather pick only the properties that you need.
172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3} # regular expression matching trusted IP addresses.
server.tomcat.max-http-header-size=0 # Maximum size in bytes of the HTTP message header.
server.tomcat.max-threads=0 # Maximum amount of worker threads.
server.tomcat.min-spare-threads=0 # M
ax
imum amount of worker threads.
server.tomcat.min-spare-threads=0 # M
in
imum amount of worker threads.
server.tomcat.port-header=X-Forwarded-Port # Name of the HTTP header used to override the original port value.
server.tomcat.protocol-header= # Header that holds the incoming protocol, usually named "X-Forwarded-Proto".
server.tomcat.protocol-header-https-value=https # Value of the protocol header that indicates that the incoming request uses SSL.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment