SpringBatch Server properties
스프링 배치에 관심있어서 보다보니, 기존 개발이랑 유사한데,
아무래도 왠만한 것들이 내장(WAS등) 되어 있다보니 관련 property 셋팅에 대해서 보게 된다.
11. Server properties
KeyDefault ValueDescription
server.address |
Network address to which the server should bind. |
|
server.compression.enabled |
false |
Whether response compression is enabled. |
server.compression.excluded-user-agents |
Comma-separated list of user agents for which responses should not be compressed. |
|
server.compression.mime-types |
[text/html, text/xml, text/plain, text/css, text/javascript, application/javascript, application/json, application/xml] |
Comma-separated list of MIME types that should be compressed. |
server.compression.min-response-size |
2KB |
Minimum "Content-Length" value that is required for compression to be performed. |
server.error.include-binding-errors |
never |
When to include "errors" attribute. |
server.error.include-exception |
false |
Include the "exception" attribute. |
server.error.include-message |
never |
When to include "message" attribute. |
server.error.include-stacktrace |
never |
When to include the "trace" attribute. |
server.error.path |
/error |
Path of the error controller. |
server.error.whitelabel.enabled |
true |
Whether to enable the default error page displayed in browsers in case of a server error. |
server.forward-headers-strategy |
Strategy for handling X-Forwarded-* headers. |
|
server.http2.enabled |
false |
Whether to enable HTTP/2 support, if the current environment supports it. |
server.jetty.accesslog.append |
false |
Append to log. |
server.jetty.accesslog.custom-format |
Custom log format, see org.eclipse.jetty.server.CustomRequestLog. If defined, overrides the "format" configuration key. |
|
server.jetty.accesslog.enabled |
false |
Enable access log. |
server.jetty.accesslog.file-date-format |
Date format to place in log file name. |
|
server.jetty.accesslog.filename |
Log filename. If not specified, logs redirect to "System.err". |
|
server.jetty.accesslog.format |
ncsa |
Log format. |
server.jetty.accesslog.ignore-paths |
Request paths that should not be logged. |
|
server.jetty.accesslog.retention-period |
31.0 |
Number of days before rotated log files are deleted. |
server.jetty.connection-idle-timeout |
Time that the connection can be idle before it is closed. |
|
server.jetty.max-http-form-post-size |
200000B |
Maximum size of the form content in any HTTP post request. |
server.jetty.threads.acceptors |
-1.0 |
Number of acceptor threads to use. When the value is -1, the default, the number of acceptors is derived from the operating environment. |
server.jetty.threads.idle-timeout |
60000ms |
Maximum thread idle time. |
server.jetty.threads.max |
200.0 |
Maximum number of threads. |
server.jetty.threads.max-queue-capacity |
Maximum capacity of the thread pool's backing queue. A default is computed based on the threading configuration. |
|
server.jetty.threads.min |
8.0 |
Minimum number of threads. |
server.jetty.threads.selectors |
-1.0 |
Number of selector threads to use. When the value is -1, the default, the number of selectors is derived from the operating environment. |
server.max-http-header-size |
8KB |
Maximum size of the HTTP message header. |
server.netty.connection-timeout |
Connection timeout of the Netty channel. |
|
server.port |
8080.0 |
Server HTTP port. |
server.server-header |
Value to use for the Server response header (if empty, no header is sent). |
|
server.servlet.application-display-name |
application |
Display name of the application. |
server.servlet.context-parameters.* |
Servlet context init parameters. |
|
server.servlet.context-path |
Context path of the application. |
|
server.servlet.encoding.charset |
||
server.servlet.encoding.enabled |
true |
Whether to enable http encoding support. |
server.servlet.encoding.force |
||
server.servlet.encoding.force-request |
||
server.servlet.encoding.force-response |
||
server.servlet.encoding.mapping.* |
||
server.servlet.jsp.class-name |
org.apache.jasper.servlet.JspServlet |
Class name of the servlet to use for JSPs. If registered is true and this class * is on the classpath then it will be registered. |
server.servlet.jsp.init-parameters.* |
Init parameters used to configure the JSP servlet. |
|
server.servlet.jsp.registered |
true |
Whether the JSP servlet is registered. |
server.servlet.register-default-servlet |
true |
Whether to register the default Servlet with the container. |
server.servlet.session.cookie.comment |
Comment for the session cookie. |
|
server.servlet.session.cookie.domain |
Domain for the session cookie. |
|
server.servlet.session.cookie.http-only |
Whether to use "HttpOnly" cookies for session cookies. |
|
server.servlet.session.cookie.max-age |
Maximum age of the session cookie. If a duration suffix is not specified, seconds will be used. |
|
server.servlet.session.cookie.name |
Session cookie name. |
|
server.servlet.session.cookie.path |
Path of the session cookie. |
|
server.servlet.session.cookie.secure |
Whether to always mark the session cookie as secure. |
|
server.servlet.session.persistent |
false |
Whether to persist session data between restarts. |
server.servlet.session.store-dir |
Directory used to store session data. |
|
server.servlet.session.timeout |
30m |
Session timeout. If a duration suffix is not specified, seconds will be used. |
server.servlet.session.tracking-modes |
Session tracking modes. |
|
server.shutdown |
Type of shutdown that the server will support. |
|
server.ssl.ciphers |
Supported SSL ciphers. |
|
server.ssl.client-auth |
Client authentication mode. Requires a trust store. |
|
server.ssl.enabled |
true |
Whether to enable SSL support. |
server.ssl.enabled-protocols |
Enabled SSL protocols. |
|
server.ssl.key-alias |
Alias that identifies the key in the key store. |
|
server.ssl.key-password |
Password used to access the key in the key store. |
|
server.ssl.key-store |
Path to the key store that holds the SSL certificate (typically a jks file). |
|
server.ssl.key-store-password |
Password used to access the key store. |
|
server.ssl.key-store-provider |
Provider for the key store. |
|
server.ssl.key-store-type |
Type of the key store. |
|
server.ssl.protocol |
TLS |
SSL protocol to use. |
server.ssl.trust-store |
Trust store that holds SSL certificates. |
|
server.ssl.trust-store-password |
Password used to access the trust store. |
|
server.ssl.trust-store-provider |
Provider for the trust store. |
|
server.ssl.trust-store-type |
Type of the trust store. |
|
server.tomcat.accept-count |
100.0 |
Maximum queue length for incoming connection requests when all possible request processing threads are in use. |
server.tomcat.accesslog.buffered |
true |
Whether to buffer output such that it is flushed only periodically. |
server.tomcat.accesslog.check-exists |
false |
Whether to check for log file existence so it can be recreated it if an external process has renamed it. |
server.tomcat.accesslog.condition-if |
Whether logging of the request will only be enabled if "ServletRequest.getAttribute(conditionIf)" does not yield null. |
|
server.tomcat.accesslog.condition-unless |
Whether logging of the request will only be enabled if "ServletRequest.getAttribute(conditionUnless)" yield null. |
|
server.tomcat.accesslog.directory |
logs |
Directory in which log files are created. Can be absolute or relative to the Tomcat base dir. |
server.tomcat.accesslog.enabled |
false |
Enable access log. |
server.tomcat.accesslog.encoding |
Character set used by the log file. Default to the system default character set. |
|
server.tomcat.accesslog.file-date-format |
.yyyy-MM-dd |
Date format to place in the log file name. |
server.tomcat.accesslog.ipv6-canonical |
false |
Whether to use IPv6 canonical representation format as defined by RFC 5952. |
server.tomcat.accesslog.locale |
Locale used to format timestamps in log entries and in log file name suffix. Default to the default locale of the Java process. |
|
server.tomcat.accesslog.max-days |
-1.0 |
Number of days to retain the access log files before they are removed. |
server.tomcat.accesslog.pattern |
common |
Format pattern for access logs. |
server.tomcat.accesslog.prefix |
access_log |
Log file name prefix. |
server.tomcat.accesslog.rename-on-rotate |
false |
Whether to defer inclusion of the date stamp in the file name until rotate time. |
server.tomcat.accesslog.request-attributes-enabled |
false |
Set request attributes for the IP address, Hostname, protocol, and port used for the request. |
server.tomcat.accesslog.rotate |
true |
Whether to enable access log rotation. |
server.tomcat.accesslog.suffix |
.log |
Log file name suffix. |
server.tomcat.additional-tld-skip-patterns |
Comma-separated list of additional patterns that match jars to ignore for TLD scanning. The special '?' and '*' characters can be used in the pattern to match one and only one character and zero or more characters respectively. |
|
server.tomcat.background-processor-delay |
10s |
Delay between the invocation of backgroundProcess methods. If a duration suffix is not specified, seconds will be used. |
server.tomcat.basedir |
Tomcat base directory. If not specified, a temporary directory is used. |
|
server.tomcat.connection-timeout |
Amount of time the connector will wait, after accepting a connection, for the request URI line to be presented. |
|
server.tomcat.max-connections |
8192.0 |
Maximum number of connections that the server accepts and processes at any given time. Once the limit has been reached, the operating system may still accept connections based on the "acceptCount" property. |
server.tomcat.max-http-form-post-size |
2MB |
Maximum size of the form content in any HTTP post request. |
server.tomcat.max-swallow-size |
2MB |
Maximum amount of request body to swallow. |
server.tomcat.mbeanregistry.enabled |
false |
Whether Tomcat's MBean Registry should be enabled. |
server.tomcat.processor-cache |
200.0 |
Maximum number of idle processors that will be retained in the cache and reused with a subsequent request. When set to -1 the cache will be unlimited with a theoretical maximum size equal to the maximum number of connections. |
server.tomcat.redirect-context-root |
true |
Whether requests to the context root should be redirected by appending a / to the path. |
server.tomcat.relaxed-path-chars |
Comma-separated list of additional unencoded characters that should be allowed in URI paths. Only "< > [ \ ] ^ ` { | }" are allowed. |
|
server.tomcat.relaxed-query-chars |
Comma-separated list of additional unencoded characters that should be allowed in URI query strings. Only "< > [ \ ] ^ ` { | }" are allowed. |
|
server.tomcat.remoteip.host-header |
X-Forwarded-Host |
Name of the HTTP header from which the remote host is extracted. |
server.tomcat.remoteip.internal-proxies |
10\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|192\\.168\\.\\d{1,3}\\.\\d{1,3}|169\\.254\\.\\d{1,3}\\.\\d{1,3}|127\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}|172\\.1[6-9]{1}\\.\\d{1,3}\\.\\d{1,3}|172\\.2[0-9]{1}\\.\\d{1,3}\\.\\d{1,3}|172\\.3[0-1]{1}\\.\\d{1,3}\\.\\d{1,3}|0:0:0:0:0:0:0:1|::1 |
Regular expression that matches proxies that are to be trusted. |
server.tomcat.remoteip.port-header |
X-Forwarded-Port |
Name of the HTTP header used to override the original port value. |
server.tomcat.remoteip.protocol-header |
Header that holds the incoming protocol, usually named "X-Forwarded-Proto". |
|
server.tomcat.remoteip.protocol-header-https-value |
https |
Value of the protocol header indicating whether the incoming request uses SSL. |
server.tomcat.remoteip.remote-ip-header |
Name of the HTTP header from which the remote IP is extracted. For instance, `X-FORWARDED-FOR`. |
|
server.tomcat.resource.allow-caching |
true |
Whether static resource caching is permitted for this web application. |
server.tomcat.resource.cache-ttl |
Time-to-live of the static resource cache. |
|
server.tomcat.threads.max |
200.0 |
Maximum amount of worker threads. |
server.tomcat.threads.min-spare |
10.0 |
Minimum amount of worker threads. |
server.tomcat.uri-encoding |
UTF-8 |
Character encoding to use to decode the URI. |
server.tomcat.use-relative-redirects |
false |
Whether HTTP 1.1 and later location headers generated by a call to sendRedirect will use relative or absolute redirects. |
server.undertow.accesslog.dir |
Undertow access log directory. |
|
server.undertow.accesslog.enabled |
false |
Whether to enable the access log. |
server.undertow.accesslog.pattern |
common |
Format pattern for access logs. |
server.undertow.accesslog.prefix |
access_log. |
Log file name prefix. |
server.undertow.accesslog.rotate |
true |
Whether to enable access log rotation. |
server.undertow.accesslog.suffix |
log |
Log file name suffix. |
server.undertow.allow-encoded-slash |
false |
Whether the server should decode percent encoded slash characters. Enabling encoded slashes can have security implications due to different servers interpreting the slash differently. Only enable this if you have a legacy application that requires it. |
server.undertow.always-set-keep-alive |
true |
Whether the 'Connection: keep-alive' header should be added to all responses, even if not required by the HTTP specification. |
server.undertow.buffer-size |
Size of each buffer. The default is derived from the maximum amount of memory that is available to the JVM. |
|
server.undertow.decode-url |
true |
Whether the URL should be decoded. When disabled, percent-encoded characters in the URL will be left as-is. |
server.undertow.direct-buffers |
Whether to allocate buffers outside the Java heap. The default is derived from the maximum amount of memory that is available to the JVM. |
|
server.undertow.eager-filter-init |
true |
Whether servlet filters should be initialized on startup. |
server.undertow.max-cookies |
200.0 |
Maximum number of cookies that are allowed. This limit exists to prevent hash collision based DOS attacks. |
server.undertow.max-headers |
Maximum number of headers that are allowed. This limit exists to prevent hash collision based DOS attacks. |
|
server.undertow.max-http-post-size |
-1B |
Maximum size of the HTTP post content. When the value is -1, the default, the size is unlimited. |
server.undertow.max-parameters |
Maximum number of query or path parameters that are allowed. This limit exists to prevent hash collision based DOS attacks. |
|
server.undertow.no-request-timeout |
Amount of time a connection can sit idle without processing a request, before it is closed by the server. |
|
server.undertow.options.server.* |
||
server.undertow.options.socket.* |
||
server.undertow.threads.io |
Number of I/O threads to create for the worker. The default is derived from the number of available processors. |
|
server.undertow.threads.worker |
Number of worker threads. The default is 8 times the number of I/O threads. |
|
server.undertow.url-charset |
UTF-8 |
Charset used to decode URLs. |
아래 URL에서 가져옴.
다른 프로퍼티들도 많기 때문에 참고하면 좋을듯 함.
Common Application properties
Various properties can be specified inside your application.properties file, inside your application.yml file, or as command line switches. This appendix provides a list of common Spring Boot properties and references to the underlying classes that consume
docs.spring.io