Skip to content

Spring Boot 4.0 Configuration Changelog

Stéphane Nicoll edited this page Oct 22, 2025 · 1 revision

Configuration property changes between 3.5.6 and 4.0.0-SNAPSHOT

Deprecated in 4.0.0-SNAPSHOT

Key Replacement Reason

spring.http.client.connect-timeout

spring.http.clients.connect-timeout

spring.http.client.factory

spring.http.clients.imperative.factory

spring.http.client.read-timeout

spring.http.clients.read-timeout

spring.http.client.redirects

spring.http.clients.redirects

spring.http.client.ssl.bundle

spring.http.clients.ssl.bundle

spring.http.reactiveclient.connect-timeout

spring.http.clients.connect-timeout

spring.http.reactiveclient.connector

spring.http.clients.reactive.connector

spring.http.reactiveclient.read-timeout

spring.http.clients.read-timeout

spring.http.reactiveclient.redirects

spring.http.clients.redirects

spring.http.reactiveclient.ssl.bundle

spring.http.clients.ssl.bundle

Added in 4.0.0-SNAPSHOT

Key Default value Description

logging.console.enabled

Whether to enable console-based logging.

management.health.mongodb.enabled

true

Whether to enable MongoDB health check.

management.metrics.mongodb.command.enabled

true

Whether to enable Mongo client command metrics.

management.metrics.mongodb.connectionpool.enabled

true

Whether to enable Mongo connection pool metrics.

management.metrics.observations.ignored-meters

Meters that should be ignored when recoding observations.

management.opentelemetry.logging.export.compression

none

Method used to compress the payload.

management.opentelemetry.logging.export.connect-timeout

10s

Connect timeout for the OTel collector connection.

management.opentelemetry.logging.export.enabled

Whether auto-configuration of logging is enabled to export logs over OTLP.

management.opentelemetry.logging.export.endpoint

URL to the OTel collector’s HTTP API.

management.opentelemetry.logging.export.headers

Custom HTTP headers you want to pass to the collector, for example auth headers.

management.opentelemetry.logging.export.timeout

10s

Call timeout for the OTel Collector to process an exported batch of data.

management.opentelemetry.logging.export.transport

http

Transport used to send the logs.

management.stackdriver.metrics.export.auto-create-metric-descriptors

true

Whether it should be attempted to create a metric descriptor before writing a time series.

management.tracing.export.enabled

true

Whether auto-configuration of tracing is enabled to export and propagate traces.

server.tomcat.resource.cache-max-size

10MB

Maximum size of the static resource cache.

spring.data.mongodb.representation.big-decimal

unspecified

Representation to use when converting a BigDecimal.

spring.data.redis.masterreplica.nodes

Static list of "host:port" pairs to use, at least one entry is required.

spring.datasource.hikari.credentials-provider-class-name

spring.datasource.oracleucp.connection-wait-timeout-while-service-down

spring.docker.compose.arguments

Arguments to pass to the Docker Compose command.

spring.docker.compose.enabled

true

Whether Docker Compose support is enabled.

spring.docker.compose.file

Paths to the Docker Compose configuration files.

spring.docker.compose.host

Hostname or IP of the machine where the docker containers are started.

spring.docker.compose.lifecycle-management

start-and-stop

Docker compose lifecycle management.

spring.docker.compose.profiles.active

Docker compose profiles that should be active.

spring.docker.compose.readiness.tcp.connect-timeout

200ms

Timeout for connections.

spring.docker.compose.readiness.tcp.read-timeout

200ms

Timeout for reads.

spring.docker.compose.readiness.timeout

2m

Timeout of the readiness checks.

spring.docker.compose.readiness.wait

always

Wait strategy to use.

spring.docker.compose.skip.in-tests

true

Whether to skip in tests.

spring.docker.compose.start.arguments

Arguments to pass to the start command.

spring.docker.compose.start.command

up

Command used to start Docker Compose.

spring.docker.compose.start.log-level

info

Log level for output.

spring.docker.compose.start.skip

if-running

Whether to skip executing the start command.

spring.docker.compose.stop.arguments

Arguments to pass to the stop command.

spring.docker.compose.stop.command

stop

Command used to stop Docker Compose.

spring.docker.compose.stop.timeout

10s

Timeout for stopping Docker Compose.

spring.elasticsearch.api-key

API key for authentication with Elasticsearch.

spring.elasticsearch.restclient.sniffer.enabled

true

Whether the sniffer is enabled.

spring.flyway.callback-locations

Locations of callbacks.

spring.flyway.powershell-executable

PowerShell executable to use for running PowerShell scripts.

spring.graphql.rsocket.preferred-json-mapper

jackson

Preferred JSON mapper to use.

spring.http.clients.connect-timeout

Default connect timeout for a client HTTP request.

spring.http.clients.imperative.factory

Default factory used for a client HTTP request.

spring.http.clients.reactive.connector

Default connector used for a client HTTP request.

spring.http.clients.read-timeout

Default read timeout for a client HTTP request.

spring.http.clients.redirects

Handling for HTTP redirects.

spring.http.clients.ssl.bundle

SSL bundle to use.

spring.http.codecs.preferred-json-mapper

jackson

Preferred JSON mapper to use for HTTP encoding and decoding.

spring.http.converters.string-encoding-charset

UTF-8

Charset to use for String conversion.

spring.http.serviceclient

HTTP Service Client definitions

spring.jackson.cbor.read

Jackson on/off token reader features that are specific to CBOR.

spring.jackson.cbor.write

Jackson on/off token writer features that are specific to CBOR.

spring.jackson.datatype.datetime

Jackson on/off features for DateTimes.

spring.jackson.find-and-add-modules

true

Whether to find and add modules to the auto-configured JsonMapper.Builder using MapperBuilder.findAndAddModules(ClassLoader).

spring.jackson.json.read

Jackson on/off token reader features that are specific to JSON.

spring.jackson.json.write

Jackson on/off token writer features that are specific to JSON.

spring.jackson.use-jackson2-defaults

false

Whether to configure Jackson 3 with the same defaults as Spring Boot previously used for Jackson 2.

spring.kafka.retry.topic.backoff.jitter

0

Jitter value for the base retry attempt, randomly subtracted or added to the calculated delay, resulting in a value between 'delay - jitter' and 'delay + jitter' but never below the base delay or above the max delay.

spring.mongodb.additional-hosts

Additional server hosts.

spring.mongodb.authentication-database

Authentication database name.

spring.mongodb.database

Database name.

spring.mongodb.host

Mongo server host.

spring.mongodb.password

Login password of the mongo server.

spring.mongodb.port

Mongo server port.

spring.mongodb.protocol

mongodb

Protocol to be used for the MongoDB connection.

spring.mongodb.replica-set-name

Required replica set name for the cluster.

spring.mongodb.representation.uuid

unspecified

Representation to use when converting a UUID to a BSON binary value.

spring.mongodb.ssl.bundle

SSL bundle name.

spring.mongodb.ssl.enabled

Whether to enable SSL support.

spring.mongodb.uri

mongodb://localhost/test

Mongo database URI.

spring.mongodb.username

Login user of the mongo server.

spring.mvc.apiversion.default

Default version that should be used for each request.

spring.mvc.apiversion.detect-supported

Whether supported versions should be detected from controllers.

spring.mvc.apiversion.required

Whether the API version is required with each request.

spring.mvc.apiversion.supported

Supported versions.

spring.mvc.apiversion.use.header

Use the HTTP header with the given name to obtain the version.

spring.mvc.apiversion.use.media-type-parameter

Use the media type parameter with the given name to obtain the version.

spring.mvc.apiversion.use.path-segment

Use the path segment at the given index to obtain the version.

spring.mvc.apiversion.use.query-parameter

Use the query parameter with the given name to obtain the version.

spring.restdocs.uri.host

The URI host to use.

spring.restdocs.uri.port

The URI port to use.

spring.restdocs.uri.scheme

The URI scheme to use (for example http).

spring.rsocket.preferred-mapper

jackson

Preferred JSON and CBOR mapper to use.

spring.servlet.encoding.charset

UTF-8

Charset of HTTP requests and responses.

spring.servlet.encoding.enabled

true

Whether to enable Servlet HTTP encoding support.

spring.servlet.encoding.force

Whether to force the encoding to the configured charset on HTTP requests and responses.

spring.servlet.encoding.force-request

Whether to force the encoding to the configured charset on HTTP requests.

spring.servlet.encoding.force-response

Whether to force the encoding to the configured charset on HTTP responses.

spring.session.data.redis.cleanup-cron

0 * * * * *

Cron expression for expired session cleanup job.

spring.session.data.redis.configure-action

notify-keyspace-events

The configure action to apply when no user-defined ConfigureRedisAction or ConfigureReactiveRedisAction bean is present.

spring.session.data.redis.flush-mode

on-save

Sessions flush mode.

spring.session.data.redis.namespace

spring:session

Namespace for keys used to store sessions.

spring.session.data.redis.repository-type

default

Type of Redis session repository to configure.

spring.session.data.redis.save-mode

on-set-attribute

Sessions save mode.

spring.task.execution.simple.cancel-remaining-tasks-on-close

false

Whether to cancel remaining tasks on close.

spring.test.jsontesters.enabled

true

Whether auto-configuration of JSON testers is enabled.

spring.test.mockmvc.webclient.enabled

true

Whether HTMLUnit’s WebClient should be auto-configured when it’s on the classpath.

spring.test.mockmvc.webdriver.enabled

true

Whether Selenium’s WebDriver should be auto-configured when it’s on the classpath.

spring.test.webservice.client.mockserver.enabled

true

Whether a MockWebServiceServer should be auto-configured.

spring.test.webservice.client.register-web-service-template

false

Whether a WebServiceTemplate bean should be registered.

spring.testcontainers.beans.startup

sequential

Testcontainers startup modes.

spring.testcontainers.dynamic-property-registry-injection

fail

How to treat injection of DynamicPropertyRegistry into a @Bean method.

spring.webflux.apiversion.default

Default version that should be used for each request.

spring.webflux.apiversion.detect-supported

Whether supported versions should be detected from controllers.

spring.webflux.apiversion.required

Whether the API version is required with each request.

spring.webflux.apiversion.supported

Supported versions.

spring.webflux.apiversion.use.header

Use the HTTP header with the given name to obtain the version.

spring.webflux.apiversion.use.media-type-parameter

Use the media type parameter with the given name to obtain the version.

spring.webflux.apiversion.use.path-segment

Use the path segment at the given index to obtain the version.

spring.webflux.apiversion.use.query-parameter

Use the query parameter with the given name to obtain the version.

Removed in 4.0.0-SNAPSHOT

Key Replacement Reason

management.endpoint.auditevents.enabled

management.endpoint.auditevents.access

management.endpoint.beans.enabled

management.endpoint.beans.access

management.endpoint.caches.enabled

management.endpoint.caches.access

management.endpoint.conditions.enabled

management.endpoint.conditions.access

management.endpoint.configprops.enabled

management.endpoint.configprops.access

management.endpoint.env.enabled

management.endpoint.env.access

management.endpoint.flyway.enabled

management.endpoint.flyway.access

management.endpoint.health.access

management.endpoint.health.cache.time-to-live

management.endpoint.health.enabled

management.endpoint.health.access

management.endpoint.health.group

management.endpoint.health.logging.slow-indicator-threshold

management.endpoint.health.probes.add-additional-paths

management.endpoint.health.probes.enabled

management.endpoint.health.roles

management.endpoint.health.show-components

management.endpoint.health.show-details

management.endpoint.health.status.http-mapping

management.endpoint.health.status.order

management.endpoint.health.validate-group-membership

management.endpoint.heapdump.enabled

management.endpoint.heapdump.access

management.endpoint.httpexchanges.enabled

management.endpoint.httpexchanges.access

management.endpoint.info.enabled

management.endpoint.info.access

management.endpoint.integrationgraph.enabled

management.endpoint.integrationgraph.access

management.endpoint.liquibase.enabled

management.endpoint.liquibase.access

management.endpoint.logfile.enabled

management.endpoint.logfile.access

management.endpoint.loggers.enabled

management.endpoint.loggers.access

management.endpoint.mappings.enabled

management.endpoint.mappings.access

management.endpoint.metrics.enabled

management.endpoint.metrics.access

management.endpoint.prometheus.enabled

management.endpoint.prometheus.access

management.endpoint.quartz.enabled

management.endpoint.quartz.access

management.endpoint.sbom.enabled

management.endpoint.sbom.access

management.endpoint.scheduledtasks.enabled

management.endpoint.scheduledtasks.access

management.endpoint.sessions.enabled

management.endpoint.sessions.access

management.endpoint.shutdown.enabled

management.endpoint.shutdown.access

management.endpoint.startup.enabled

management.endpoint.startup.access

management.endpoint.threaddump.enabled

management.endpoint.threaddump.access

management.health.defaults.enabled

management.health.diskspace.enabled

management.health.diskspace.path

management.health.diskspace.threshold

management.health.livenessstate.enabled

management.health.ping.enabled

management.health.probes.enabled

management.endpoint.health.probes.enabled

management.health.readinessstate.enabled

management.health.ssl.certificate-validity-warning-threshold

management.health.ssl.enabled

management.otlp.logging

management.opentelemetry.logging.export

management.server.undertow.accesslog.prefix

management.signalfx.metrics.export.access-token

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.batch-size

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.connect-timeout

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.enabled

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.published-histogram-type

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.read-timeout

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.source

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.step

Deprecated in Micrometer 1.15.0

management.signalfx.metrics.export.uri

Deprecated in Micrometer 1.15.0

management.tracing.enabled

server.undertow.accesslog.dir

server.undertow.accesslog.enabled

server.undertow.accesslog.pattern

server.undertow.accesslog.prefix

server.undertow.accesslog.rotate

server.undertow.accesslog.suffix

server.undertow.allow-encoded-slash

server.undertow.decode-slash

server.undertow.always-set-keep-alive

server.undertow.buffer-size

server.undertow.decode-slash

server.undertow.decode-url

server.undertow.direct-buffers

server.undertow.eager-filter-init

server.undertow.max-cookies

server.undertow.max-headers

server.undertow.max-http-post-size

server.undertow.max-parameters

server.undertow.no-request-timeout

server.undertow.options.server

server.undertow.options.socket

server.undertow.preserve-path-on-forward

server.undertow.threads.io

server.undertow.threads.worker

server.undertow.url-charset

spring.codec.log-request-details

spring.http.codecs.log-request-details

spring.codec.max-in-memory-size

spring.http.codecs.max-in-memory-size

spring.dao.exceptiontranslation.enabled

spring.flyway.clean-on-validation-error

Deprecated in Flyway 10.18 and removed in Flyway 11.0

spring.flyway.oracle-kerberos-cache-file

spring.flyway.oracle.kerberos-cache-file

spring.flyway.oracle-sqlplus

spring.flyway.oracle.sqlplus

spring.flyway.oracle-sqlplus-warn

spring.flyway.oracle.sqlplus-warn

spring.flyway.oracle-wallet-location

spring.flyway.oracle.wallet-location

spring.flyway.sql-server-kerberos-login-file

spring.flyway.sqlserver.kerberos-login-file

spring.graphql.path

spring.graphql.http.path

spring.graphql.sse.timeout

spring.graphql.http.sse.timeout

spring.jackson.generator

spring.jackson.parser

spring.jackson.read

spring.jackson.json.read

spring.jackson.write

spring.jackson.json.write

spring.jersey.application-path

spring.jersey.filter.order

spring.jersey.init

spring.jersey.servlet.load-on-startup

spring.jersey.type

spring.session.hazelcast.flush-mode

spring.session.hazelcast.map-name

spring.session.hazelcast.save-mode

spring.session.mongodb.collection-name

spring.test.database.replace

spring.test.observability.auto-configure

spring.test.webtestclient.timeout

Clone this wiki locally