Skip to content

Spring Boot 4.2 Configuration Changelog

Andy Wilkinson edited this page Nov 20, 2026 · 1 revision

Configuration property changes between 4.1.3 and 4.2.0

Default Changed in 4.2.0

Key Old Default New Default

spring.webflux.multipart.max-disk-usage-per-part

-1B

1MB

spring.webflux.multipart.max-parts

-1

50

Deprecated in 4.2.0

Key Replacement Reason

management.appoptics.metrics.export.api-token

management.appoptics.metrics.export.batch-size

management.appoptics.metrics.export.connect-timeout

management.appoptics.metrics.export.floor-times

management.appoptics.metrics.export.host-tag

management.appoptics.metrics.export.uri

server.forward-headers-strategy

server.request.header.forwarded.strategy

server.tomcat.additional-tld-skip-patterns

server.tomcat.servlet.additional-tld-skip-patterns

server.tomcat.redirect-context-root

server.tomcat.servlet.redirect-context-root

server.tomcat.use-relative-redirects

server.tomcat.servlet.use-relative-redirects

spring.mvc.pathmatch.matching-strategy

Path matching is no longer configurable

spring.pulsar.admin.authentication.param

module deprecated in favor of pulsar-spring

spring.pulsar.admin.authentication.plugin-class-name

module deprecated in favor of pulsar-spring

spring.pulsar.admin.connection-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.admin.read-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.admin.request-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.admin.service-url

module deprecated in favor of pulsar-spring

spring.pulsar.client.authentication.param

module deprecated in favor of pulsar-spring

spring.pulsar.client.authentication.plugin-class-name

module deprecated in favor of pulsar-spring

spring.pulsar.client.connection-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.client.failover.backup-clusters

module deprecated in favor of pulsar-spring

spring.pulsar.client.failover.check-interval

module deprecated in favor of pulsar-spring

spring.pulsar.client.failover.delay

module deprecated in favor of pulsar-spring

spring.pulsar.client.failover.policy

module deprecated in favor of pulsar-spring

spring.pulsar.client.failover.switch-back-delay

module deprecated in favor of pulsar-spring

spring.pulsar.client.lookup-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.client.operation-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.client.service-url

module deprecated in favor of pulsar-spring

spring.pulsar.client.threads.io

module deprecated in favor of pulsar-spring

spring.pulsar.client.threads.listener

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.dead-letter-policy.dead-letter-topic

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.dead-letter-policy.initial-subscription-name

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.dead-letter-policy.max-redeliver-count

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.dead-letter-policy.retry-letter-topic

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.name

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.priority-level

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.read-compacted

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.retry-enable

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.subscription.initial-position

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.subscription.mode

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.subscription.topics-mode

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.subscription.type

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.topics

module deprecated in favor of pulsar-spring

spring.pulsar.consumer.topics-pattern

module deprecated in favor of pulsar-spring

spring.pulsar.defaults.topic.namespace

module deprecated in favor of pulsar-spring

spring.pulsar.defaults.topic.tenant

module deprecated in favor of pulsar-spring

spring.pulsar.function.fail-fast

module deprecated in favor of pulsar-spring

spring.pulsar.function.propagate-failures

module deprecated in favor of pulsar-spring

spring.pulsar.function.propagate-stop-failures

module deprecated in favor of pulsar-spring

spring.pulsar.listener.concurrency

module deprecated in favor of pulsar-spring

spring.pulsar.listener.observation-enabled

module deprecated in favor of pulsar-spring

spring.pulsar.producer.access-mode

module deprecated in favor of pulsar-spring

spring.pulsar.producer.batching-enabled

module deprecated in favor of pulsar-spring

spring.pulsar.producer.cache.expire-after-access

module deprecated in favor of pulsar-spring

spring.pulsar.producer.cache.initial-capacity

module deprecated in favor of pulsar-spring

spring.pulsar.producer.cache.maximum-size

module deprecated in favor of pulsar-spring

spring.pulsar.producer.chunking-enabled

module deprecated in favor of pulsar-spring

spring.pulsar.producer.compression-type

module deprecated in favor of pulsar-spring

spring.pulsar.producer.hashing-scheme

module deprecated in favor of pulsar-spring

spring.pulsar.producer.message-routing-mode

module deprecated in favor of pulsar-spring

spring.pulsar.producer.name

module deprecated in favor of pulsar-spring

spring.pulsar.producer.send-timeout

module deprecated in favor of pulsar-spring

spring.pulsar.producer.topic-name

module deprecated in favor of pulsar-spring

spring.pulsar.reader.name

module deprecated in favor of pulsar-spring

spring.pulsar.reader.read-compacted

module deprecated in favor of pulsar-spring

spring.pulsar.reader.subscription-name

module deprecated in favor of pulsar-spring

spring.pulsar.reader.subscription-role-prefix

module deprecated in favor of pulsar-spring

spring.pulsar.reader.topics

module deprecated in favor of pulsar-spring

spring.pulsar.template.observations-enabled

module deprecated in favor of pulsar-spring

spring.pulsar.transaction.enabled

module deprecated in favor of pulsar-spring

Added in 4.2.0

Key Default value Description

management.datadog.metrics.export.compress

true

Whether payload should be compressed.

management.health.amqprabbit.enabled

true

Whether to enable AMQP 1.0 RabbitMQ health check.

management.health.jms.start-timeout

Timeout to use when starting a connection for the health check.

management.metrics.observations.include-active-long-task-timer

false

Whether to create the active observation LongTaskTimer.

management.observations.conventions

micrometer

Semantic conventions to use when configuring observations and metrics.

management.opentelemetry.otlp.compression

Method used to compress the payload.

management.opentelemetry.otlp.endpoint

OTLP endpoint to connect to.

management.opentelemetry.otlp.headers

Additional headers to be passed with every request.

management.tracing.mdc.span-id-key

spanId

Key under which the span ID is added to the {@code org.slf4j.MDC}.

management.tracing.mdc.trace-id-key

traceId

Key under which the trace ID is added to the {@code org.slf4j.MDC}.

server.request.header.forwarded.naming

Naming of forwarded headers.

server.request.header.forwarded.strategy

Strategy to use to process the forwarded headers.

server.request.header.forwarded.use-prefix

false

If the 'prefix' forward header should be used.

server.tomcat.servlet.additional-tld-skip-patterns

List of additional patterns that match jars to ignore for TLD scanning.

server.tomcat.servlet.redirect-context-root

true

Whether requests to the context root should be redirected by appending a / to the path.

server.tomcat.servlet.use-relative-redirects

true

Whether HTTP 1.1 and later location headers generated by a call to sendRedirect will use relative or absolute redirects.

spring.amqp.client.completion-timeout

60s

Maximum time to wait for request operations to complete.

spring.amqp.client.default-to-address

Default destination address for send operations when none is specified.

spring.amqp.host

localhost

AMQP broker host.

spring.amqp.listener.auto-startup

true

Whether to start the container automatically on startup.

spring.amqp.listener.concurrency

1

Number of consumers.

spring.amqp.listener.default-requeue-rejected

true

Whether to requeue messages in case of error.

spring.amqp.listener.graceful-shutdown-period

30s

How long to wait for all consumers to shut down successfully.

spring.amqp.listener.initial-credits

100

Initial number of credits to grant to the AMQP receiver.

spring.amqp.listener.receive-timeout

1s

Timeout for receive operations.

spring.amqp.password

Password used to authenticate to the broker.

spring.amqp.port

5672

AMQP broker port.

spring.amqp.rabbitmq.address

The address to which the client should connect.

spring.amqp.rabbitmq.host

localhost

RabbitMQ host.

spring.amqp.rabbitmq.listener.batch.receive-timeout

30s

Timeout for gathering batch messages.

spring.amqp.rabbitmq.listener.batch.size

Batch size, expressed as the number of physical messages, to be used by the container.

spring.amqp.rabbitmq.listener.observation-enabled

false

Whether to enable observation.

spring.amqp.rabbitmq.password

Login to authenticate against the broker.

spring.amqp.rabbitmq.port

RabbitMQ port.

spring.amqp.rabbitmq.ssl.bundle

SSL bundle name.

spring.amqp.rabbitmq.template.default-receive-queue

Name of the default queue to receive messages from when none is specified explicitly.

spring.amqp.rabbitmq.template.exchange

Name of the default exchange to use for send operations.

spring.amqp.rabbitmq.template.routing-key

Value of a default routing key to use for send operations.

spring.amqp.rabbitmq.username

Login user to authenticate to the broker.

spring.amqp.rabbitmq.virtual-host

Virtual host to use when connecting to the broker.

spring.amqp.username

Login user to authenticate to the broker.

spring.cache.caffeine.cache-mode

native

Mode to use for configured cache names or caches created on demand.

spring.graphql.http.methods

POST

HTTP methods supported to make GraphQL requests.

spring.graphql.http.sse.methods

POST

HTTP methods supported to establish a GraphQL SSE connection.

spring.kafka.listener.admin.client-id

ID to pass to the server when making requests.

spring.kafka.listener.admin.close-timeout

Close timeout.

spring.kafka.listener.admin.fail-fast

false

Whether to fail fast if the broker is not available on startup.

spring.kafka.listener.admin.operation-timeout

Operation timeout.

spring.kafka.listener.admin.properties

Additional admin-specific properties used to configure the client.

spring.kafka.listener.admin.security.protocol

Security protocol used to communicate with brokers.

spring.kafka.listener.admin.ssl.bundle

Name of the SSL bundle to use.

spring.kafka.listener.admin.ssl.key-password

Password of the private key in either key store key or key store file.

spring.kafka.listener.admin.ssl.key-store-certificate-chain

Certificate chain in PEM format with a list of X.509 certificates.

spring.kafka.listener.admin.ssl.key-store-key

Private key in PEM format with PKCS#8 keys.

spring.kafka.listener.admin.ssl.key-store-location

Location of the key store file.

spring.kafka.listener.admin.ssl.key-store-password

Store password for the key store file.

spring.kafka.listener.admin.ssl.key-store-type

Type of the key store.

spring.kafka.listener.admin.ssl.protocol

SSL protocol to use.

spring.kafka.listener.admin.ssl.trust-store-certificates

Trusted certificates in PEM format with X.509 certificates.

spring.kafka.listener.admin.ssl.trust-store-location

Location of the trust store file.

spring.kafka.listener.admin.ssl.trust-store-password

Store password for the trust store file.

spring.kafka.listener.admin.ssl.trust-store-type

Type of the trust store.

spring.kafka.listener.await-async-results-on-stop

false

Whether the container waits for in-flight asynchronous listener results to complete, within its shutdown timeout, when it stops.

spring.kafka.streams.leave-group-on-close

false

Whether the consumer should leave the group when stopping Kafka Streams.

spring.kafka.template.admin.client-id

ID to pass to the server when making requests.

spring.kafka.template.admin.close-timeout

Close timeout.

spring.kafka.template.admin.fail-fast

false

Whether to fail fast if the broker is not available on startup.

spring.kafka.template.admin.operation-timeout

Operation timeout.

spring.kafka.template.admin.properties

Additional admin-specific properties used to configure the client.

spring.kafka.template.admin.security.protocol

Security protocol used to communicate with brokers.

spring.kafka.template.admin.ssl.bundle

Name of the SSL bundle to use.

spring.kafka.template.admin.ssl.key-password

Password of the private key in either key store key or key store file.

spring.kafka.template.admin.ssl.key-store-certificate-chain

Certificate chain in PEM format with a list of X.509 certificates.

spring.kafka.template.admin.ssl.key-store-key

Private key in PEM format with PKCS#8 keys.

spring.kafka.template.admin.ssl.key-store-location

Location of the key store file.

spring.kafka.template.admin.ssl.key-store-password

Store password for the key store file.

spring.kafka.template.admin.ssl.key-store-type

Type of the key store.

spring.kafka.template.admin.ssl.protocol

SSL protocol to use.

spring.kafka.template.admin.ssl.trust-store-certificates

Trusted certificates in PEM format with X.509 certificates.

spring.kafka.template.admin.ssl.trust-store-location

Location of the trust store file.

spring.kafka.template.admin.ssl.trust-store-password

Store password for the trust store file.

spring.kafka.template.admin.ssl.trust-store-type

Type of the trust store.

spring.ldap.embedded.authentication-required-operation-types

LDAP operation types that require authentication.

spring.ldap.ssl.bundle

SSL bundle name.

spring.ldap.ssl.enabled

Whether to enable SSL support.

spring.properties.migrator.fail

never

When the application should fail to start because of configuration keys that need to be migrated.

Removed in 4.2.0

Key Replacement Reason

management.metrics.observations.ignored-meters

management.metrics.observations.include-active-long-task-timer

Clone this wiki locally