Skip to content

Spring Boot 2.5 Configuration Changelog

Phillip Webb edited this page Nov 13, 2024 · 3 revisions

Configuration properties change between 2.4.6 and 2.5.0

Deprecated in 2.5.0

Key

Replacement

Reason

spring.artemis.host

spring.artemis.broker-url

spring.artemis.port

spring.artemis.broker-url

spring.batch.initialize-schema

spring.batch.jdbc.initialize-schema

spring.batch.schema

spring.batch.jdbc.schema

spring.batch.table-prefix

spring.batch.jdbc.table-prefix

spring.datasource.continue-on-error

spring.sql.init.continue-on-error

spring.datasource.data

spring.sql.init.data-locations

spring.datasource.data-password

spring.sql.init.password

spring.datasource.data-username

spring.sql.init.username

spring.datasource.initialization-mode

spring.sql.init.enabled

spring.datasource.platform

spring.sql.init.platform

spring.datasource.schema

spring.sql.init.schema-locations

spring.datasource.schema-password

spring.sql.init.password

spring.datasource.schema-username

spring.sql.init.username

spring.datasource.separator

spring.sql.init.separator

spring.datasource.sql-script-encoding

spring.sql.init.encoding

spring.flyway.check-location

Locations can no longer be checked accurately due to changes in Flyway’s location support.

New in 2.5.0

Key

Default value

Description

management.endpoint.configprops.additional-keys-to-sanitize

Keys that should be sanitized in addition to those already configured.

management.endpoint.env.additional-keys-to-sanitize

Keys that should be sanitized in addition to those already configured.

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

0ms

Maximum time that a response can be cached.

management.endpoint.quartz.enabled

true

Whether to enable the quartz endpoint.

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

0ms

Maximum time that a response can be cached.

management.endpoints.web.cors.allowed-origin-patterns

Comma-separated list of origin patterns to allow.

management.endpoints.web.discovery.enabled

true

Whether the discovery page is enabled.

management.metrics.data.repository.autotime.enabled

true

management.metrics.data.repository.autotime.percentiles

management.metrics.data.repository.autotime.percentiles-histogram

false

management.metrics.data.repository.metric-name

spring.data.repository.invocations

Name of the metric for sent requests.

management.metrics.export.influx.api-version

API version of InfluxDB to use.

management.metrics.export.influx.bucket

Bucket for metrics.

management.metrics.export.influx.org

Org to write metrics to.

management.metrics.export.influx.token

Authentication token to use with calls to the InfluxDB backend.

management.metrics.mongo.command.enabled

true

Whether to enable Mongo client command metrics.

management.metrics.mongo.connectionpool.enabled

true

Whether to enable Mongo connection pool metrics.

server.tomcat.keep-alive-timeout

Time to wait for another HTTP request before the connection is closed.

server.tomcat.max-keep-alive-requests

100

Maximum number of HTTP requests that can be pipelined before the connection is closed.

spring.artemis.broker-url

tcp://localhost:61616

Artemis broker port.

spring.batch.jdbc.initialize-schema

embedded

Database schema initialization mode.

spring.batch.jdbc.schema

classpath:org/springframework/batch/core/schema-@@platform@@.sql

Path to the SQL file to use to initialize the database schema.

spring.batch.jdbc.table-prefix

Table prefix for all the batch meta-data tables.

spring.data.cassandra.config

Location of the configuration file to use.

spring.data.cassandra.connection.connection-timeout

5s

spring.data.cassandra.controlconnection.timeout

5s

Timeout to use for control queries.

spring.datasource.embedded-database-connection

Connection details for an embedded database.

spring.datasource.hikari.keepalive-time

spring.datasource.oracleucp.read-only-instance-allowed

spring.elasticsearch.rest.sniffer.delay-after-failure

1m

Delay of a sniff execution scheduled after a failure.

spring.elasticsearch.rest.sniffer.interval

5m

Interval between consecutive ordinary sniff executions.

spring.flyway.driver-class-name

Fully qualified name of the JDBC driver.

spring.flyway.vault-secrets

Comma-separated list of paths to secrets that contain Flyway configurations.

spring.flyway.vault-token

Vault token required to access secrets.

spring.flyway.vault-url

REST API URL of the Vault server.

spring.integration.channel.auto-create

true

Whether to create input channels if necessary.

spring.integration.channel.max-broadcast-subscribers

Default number of subscribers allowed on, for example, a 'PublishSubscribeChannel'.

spring.integration.channel.max-unicast-subscribers

Default number of subscribers allowed on, for example, a 'DirectChannel'.

spring.integration.endpoint.no-auto-startup

A comma-separated list of endpoint bean names patterns that should not be started automatically during application startup.

spring.integration.endpoint.read-only-headers

A comma-separated list of message header names that should not be populated into Message instances during a header copying operation.

spring.integration.endpoint.throw-exception-on-late-reply

false

Whether to throw an exception when a reply is not expected anymore by a gateway.

spring.integration.error.ignore-failures

true

Whether to ignore failures for one or more of the handlers of the global 'errorChannel'.

spring.integration.error.require-subscribers

true

Whether to not silently ignore messages on the global 'errorChannel' when they are no subscribers.

spring.jpa.defer-datasource-initialization

false

spring.kafka.listener.only-log-record-metadata

true

Whether to suppress the entire record from being written to the log when retries are being attempted.

spring.netty.leak-detection

disabled

Level of leak detection for reference-counted buffers.

spring.rabbitmq.ssl.key-store-algorithm

SunX509

Key store algorithm.

spring.rabbitmq.ssl.trust-store-algorithm

SunX509

Trust store algorithm.

spring.sql.init.continue-on-error

false

Whether initialization should continue when an error occurs.

spring.sql.init.data-locations

Locations of the data (DML) scripts to apply to the database.

spring.sql.init.enabled

true

Whether basic script-based initialization of an SQL database is enabled.

spring.sql.init.encoding

Encoding of the schema and data scripts.

spring.sql.init.password

Password of the database to use when applying initialization scripts (if different).

spring.sql.init.platform

all

Platform to use in the default schema or data script locations, schema-${platform}.sql and data-${platform}.sql.

spring.sql.init.schema-locations

Locations of the schema (DDL) scripts to apply to the database.

spring.sql.init.separator

;

Statement separator in the schema and data scripts.

spring.sql.init.username

Username of the database to use when applying initialization scripts (if different).

spring.webflux.session.cookie.same-site

lax

SameSite attribute value for session Cookies.

Removed in 2.5.0

Key

Replacement

Reason

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

0ms

Maximum time that a response can be cached.

management.metrics.distribution.sla

server.jetty.acceptors

server.jetty.max-queue-capacity

server.jetty.max-threads

server.jetty.min-threads

server.jetty.selectors

server.jetty.thread-idle-timeout

server.tomcat.host-header

server.tomcat.internal-proxies

server.tomcat.max-threads

server.tomcat.min-spare-threads

server.tomcat.port-header

server.tomcat.protocol-header

server.tomcat.protocol-header-https-value

server.tomcat.remote-ip-header

server.undertow.io-threads

server.undertow.worker-threads

spring.data.cassandra.cluster-name

spring.data.cassandra.connect-timeout

spring.data.cassandra.consistency-level

spring.data.cassandra.fetch-size

spring.data.cassandra.read-timeout

spring.data.cassandra.serial-consistency-level

spring.data.solr.repositories.enabled

true

Whether to enable Solr repositories.

spring.jta.bitronix.connectionfactory.acquire-increment

spring.jta.bitronix.connectionfactory.acquisition-interval

spring.jta.bitronix.connectionfactory.acquisition-timeout

spring.jta.bitronix.connectionfactory.allow-local-transactions

spring.jta.bitronix.connectionfactory.apply-transaction-timeout

spring.jta.bitronix.connectionfactory.automatic-enlisting-enabled

spring.jta.bitronix.connectionfactory.cache-producers-consumers

spring.jta.bitronix.connectionfactory.class-name

spring.jta.bitronix.connectionfactory.defer-connection-release

spring.jta.bitronix.connectionfactory.disabled

spring.jta.bitronix.connectionfactory.driver-properties

spring.jta.bitronix.connectionfactory.failed

spring.jta.bitronix.connectionfactory.ignore-recovery-failures

spring.jta.bitronix.connectionfactory.max-idle-time

spring.jta.bitronix.connectionfactory.max-pool-size

spring.jta.bitronix.connectionfactory.min-pool-size

spring.jta.bitronix.connectionfactory.password

spring.jta.bitronix.connectionfactory.share-transaction-connections

spring.jta.bitronix.connectionfactory.test-connections

spring.jta.bitronix.connectionfactory.two-pc-ordering-position

spring.jta.bitronix.connectionfactory.unique-name

spring.jta.bitronix.connectionfactory.use-tm-join

spring.jta.bitronix.connectionfactory.user

spring.jta.bitronix.datasource.acquire-increment

spring.jta.bitronix.datasource.acquisition-interval

spring.jta.bitronix.datasource.acquisition-timeout

spring.jta.bitronix.datasource.allow-local-transactions

spring.jta.bitronix.datasource.apply-transaction-timeout

spring.jta.bitronix.datasource.automatic-enlisting-enabled

spring.jta.bitronix.datasource.class-name

spring.jta.bitronix.datasource.cursor-holdability

spring.jta.bitronix.datasource.defer-connection-release

spring.jta.bitronix.datasource.disabled

spring.jta.bitronix.datasource.driver-properties

spring.jta.bitronix.datasource.enable-jdbc4-connection-test

spring.jta.bitronix.datasource.failed

spring.jta.bitronix.datasource.ignore-recovery-failures

spring.jta.bitronix.datasource.isolation-level

spring.jta.bitronix.datasource.local-auto-commit

spring.jta.bitronix.datasource.login-timeout

spring.jta.bitronix.datasource.max-idle-time

spring.jta.bitronix.datasource.max-pool-size

spring.jta.bitronix.datasource.min-pool-size

spring.jta.bitronix.datasource.prepared-statement-cache-size

spring.jta.bitronix.datasource.share-transaction-connections

spring.jta.bitronix.datasource.test-query

spring.jta.bitronix.datasource.two-pc-ordering-position

spring.jta.bitronix.datasource.unique-name

spring.jta.bitronix.datasource.use-tm-join

spring.jta.bitronix.properties.allow-multiple-lrc

spring.jta.bitronix.properties.asynchronous2-pc

spring.jta.bitronix.properties.background-recovery-interval

spring.jta.bitronix.properties.background-recovery-interval-seconds

spring.jta.bitronix.properties.current-node-only-recovery

spring.jta.bitronix.properties.debug-zero-resource-transaction

spring.jta.bitronix.properties.default-transaction-timeout

spring.jta.bitronix.properties.disable-jmx

spring.jta.bitronix.properties.exception-analyzer

spring.jta.bitronix.properties.filter-log-status

spring.jta.bitronix.properties.force-batching-enabled

spring.jta.bitronix.properties.forced-write-enabled

spring.jta.bitronix.properties.graceful-shutdown-interval

spring.jta.bitronix.properties.jndi-transaction-synchronization-registry-name

spring.jta.bitronix.properties.jndi-user-transaction-name

spring.jta.bitronix.properties.journal

spring.jta.bitronix.properties.log-part1-filename

spring.jta.bitronix.properties.log-part2-filename

spring.jta.bitronix.properties.max-log-size-in-mb

spring.jta.bitronix.properties.resource-configuration-filename

spring.jta.bitronix.properties.server-id

spring.jta.bitronix.properties.skip-corrupted-logs

spring.jta.bitronix.properties.warn-about-zero-resource-transaction

spring.webflux.date-format

Clone this wiki locally