Skip to content

Spring Boot 2.4.0 RC1 Configuration Changelog

Phillip Webb edited this page Dec 9, 2020 · 1 revision

Configuration properties change between 2.4.0-M4 and 2.4.0-RC1

Deprecated in 2.4.0-RC1

Key

Replacement

Reason

management.server.servlet.context-path

management.server.base-path

server.tomcat.use-relative-redirects

spring.mvc.locale

spring.web.locale

spring.mvc.locale-resolver

spring.web.locale-resolver

spring.resources.add-mappings

spring.web.resources.add-mappings

spring.resources.cache.cachecontrol.cache-private

spring.web.resources.cache.cachecontrol.cache-private

spring.resources.cache.cachecontrol.cache-public

spring.web.resources.cache.cachecontrol.cache-public

spring.resources.cache.cachecontrol.max-age

spring.web.resources.cache.cachecontrol.max-age

spring.resources.cache.cachecontrol.must-revalidate

spring.web.resources.cache.cachecontrol.must-revalidate

spring.resources.cache.cachecontrol.no-cache

spring.web.resources.cache.cachecontrol.no-cache

spring.resources.cache.cachecontrol.no-store

spring.web.resources.cache.cachecontrol.no-store

spring.resources.cache.cachecontrol.no-transform

spring.web.resources.cache.cachecontrol.no-transform

spring.resources.cache.cachecontrol.proxy-revalidate

spring.web.resources.cache.cachecontrol.proxy-revalidate

spring.resources.cache.cachecontrol.s-max-age

spring.web.resources.cache.cachecontrol.s-max-age

spring.resources.cache.cachecontrol.stale-if-error

spring.web.resources.cache.cachecontrol.stale-if-error

spring.resources.cache.cachecontrol.stale-while-revalidate

spring.web.resources.cache.cachecontrol.stale-while-revaliate

spring.resources.cache.period

spring.web.resources.cache.period

spring.resources.chain.cache

spring.web.resources.chain.cache

spring.resources.chain.compressed

spring.web.resources.chain.compressed

spring.resources.chain.enabled

spring.web.resources.chain.enabled

spring.resources.chain.strategy.content.enabled

spring.web.resources.chain.strategy.content.enabled

spring.resources.chain.strategy.content.paths

spring.web.resources.chain.strategy.content.paths

spring.resources.chain.strategy.fixed.enabled

spring.web.resources.chain.strategy.fixed.enabled

spring.resources.chain.strategy.fixed.paths

spring.web.resources.chain.strategy.fixed.paths

spring.resources.chain.strategy.fixed.version

spring.web.resources.chain.strategy.fixed.version

spring.resources.static-locations

spring.web.resources.static-locations

New in 2.4.0-RC1

Key

Default value

Description

logging.charset.console

Charset to use for console output.

logging.charset.file

Charset to use for file output.

logging.logback.rollingpolicy.clean-history-on-start

false

Whether to clean the archive log files on startup.

logging.logback.rollingpolicy.file-name-pattern

${LOG_FILE}.%d{yyyy-MM-dd}.%i.gz

Pattern for rolled-over log file names.

logging.logback.rollingpolicy.max-file-size

10MB

Maximum log file size.

logging.logback.rollingpolicy.max-history

7

Maximum number of days archive log files are kept.

logging.logback.rollingpolicy.total-size-cap

0B

Total size of log backups to be kept.

management.server.base-path

``

Management endpoint base path (for instance, /management).

spring.flyway.lock-retry-count

50

Maximum number of retries when trying to obtain a lock.

spring.liquibase.driver-class-name

Fully qualified name of the JDBC driver.

spring.rabbitmq.listener.direct.de-batching-enabled

true

Whether the container should present batched messages as discrete messages or call the listener with the batch.

spring.rabbitmq.listener.simple.consumer-batch-enabled

false

Whether the container creates a batch of messages based on the 'receive-timeout' and 'batch-size'.

spring.rabbitmq.listener.simple.de-batching-enabled

true

Whether the container should present batched messages as discrete messages or call the listener with the batch.

spring.web.locale

Locale to use.

spring.web.locale-resolver

Define how the locale should be resolved.

spring.web.resources.add-mappings

true

Whether to enable default resource handling.

spring.web.resources.cache.cachecontrol.cache-private

Indicate that the response message is intended for a single user and must not be stored by a shared cache.

spring.web.resources.cache.cachecontrol.cache-public

Indicate that any cache may store the response.

spring.web.resources.cache.cachecontrol.max-age

Maximum time the response should be cached, in seconds if no duration suffix is not specified.

spring.web.resources.cache.cachecontrol.must-revalidate

Indicate that once it has become stale, a cache must not use the response without re-validating it with the server.

spring.web.resources.cache.cachecontrol.no-cache

Indicate that the cached response can be reused only if re-validated with the server.

spring.web.resources.cache.cachecontrol.no-store

Indicate to not cache the response in any case.

spring.web.resources.cache.cachecontrol.no-transform

Indicate intermediaries (caches and others) that they should not transform the response content.

spring.web.resources.cache.cachecontrol.proxy-revalidate

Same meaning as the "must-revalidate" directive, except that it does not apply to private caches.

spring.web.resources.cache.cachecontrol.s-max-age

Maximum time the response should be cached by shared caches, in seconds if no duration suffix is not specified.

spring.web.resources.cache.cachecontrol.stale-if-error

Maximum time the response may be used when errors are encountered, in seconds if no duration suffix is not specified.

spring.web.resources.cache.cachecontrol.stale-while-revalidate

Maximum time the response can be served after it becomes stale, in seconds if no duration suffix is not specified.

spring.web.resources.cache.period

Cache period for the resources served by the resource handler.

spring.web.resources.chain.cache

true

Whether to enable caching in the Resource chain.

spring.web.resources.chain.compressed

false

Whether to enable resolution of already compressed resources (gzip, brotli).

spring.web.resources.chain.enabled

Whether to enable the Spring Resource Handling chain.

spring.web.resources.chain.strategy.content.enabled

false

Whether to enable the content Version Strategy.

spring.web.resources.chain.strategy.content.paths

/**

Comma-separated list of patterns to apply to the content Version Strategy.

spring.web.resources.chain.strategy.fixed.enabled

false

Whether to enable the fixed Version Strategy.

spring.web.resources.chain.strategy.fixed.paths

/**

Comma-separated list of patterns to apply to the fixed Version Strategy.

spring.web.resources.chain.strategy.fixed.version

Version string to use for the fixed Version Strategy.

spring.web.resources.static-locations

classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/

Locations of static resources.

Removed in 2.4.0-RC1

Key

Replacement

Reason

logging.file.clean-history-on-start

logging.logback.rollingpolicy.clean-history-on-start

logging.file.max-history

logging.logback.rollingpolicy.max-history

logging.file.max-size

logging.logback.rollingpolicy.max-file-size

logging.file.total-size-cap

logging.logback.rollingpolicy.total-size-cap

logging.pattern.rolling-file-name

logging.logback.rollingpolicy.file-name-pattern

Clone this wiki locally