Skip to content

Spring Boot 2.7 Configuration Changelog

Phillip Webb edited this page Nov 13, 2024 · 1 revision

Configuration properties change between 2.6.8 and 2.7.0

Deprecated in 2.7.0

Key

Replacement

Reason

spring.mustache.allow-request-override

spring.mustache.servlet.allow-request-override

spring.mustache.allow-session-override

spring.mustache.servlet.allow-session-override

spring.mustache.cache

spring.mustache.servlet.cache

spring.mustache.content-type

spring.mustache.servlet.content-type

spring.mustache.expose-request-attributes

spring.mustache.servlet.expose-request-attributes

spring.mustache.expose-session-attributes

spring.mustache.servlet.expose-session-attributes

spring.mustache.expose-spring-macro-helpers

spring.mustache.servlet.expose-spring-macro-helpers

New in 2.7.0

Key

Default value

Description

management.info.os.enabled

false

Whether to enable Operating System info.

management.metrics.export.dynatrace.v2.use-dynatrace-summary-instruments

true

Whether to fall back to the built-in micrometer instruments for Timer and DistributionSummary.

management.metrics.graphql.autotime.enabled

true

management.metrics.graphql.autotime.percentiles

management.metrics.graphql.autotime.percentiles-histogram

false

management.server.ssl.certificate

management.server.ssl.certificate-private-key

management.server.ssl.trust-certificate

management.server.ssl.trust-certificate-private-key

server.netty.max-keep-alive-requests

Maximum number of requests that can be made per connection.

server.ssl.certificate

Path to a PEM-encoded SSL certificate file.

server.ssl.certificate-private-key

Path to a PEM-encoded private key file for the SSL certificate.

server.ssl.trust-certificate

Path to a PEM-encoded SSL certificate authority file.

server.ssl.trust-certificate-private-key

Path to a PEM-encoded private key file for the SSL certificate authority.

spring.batch.jdbc.isolation-level-for-create

Transaction isolation level to use when creating job meta-data for new jobs.

spring.flyway.placeholder-separator

:

Separator of default placeholders.

spring.graphql.cors.allow-credentials

Whether credentials are supported.

spring.graphql.cors.allowed-headers

Comma-separated list of HTTP headers to allow in a request. '*' allows all headers.

spring.graphql.cors.allowed-methods

Comma-separated list of HTTP methods to allow. '*' allows all methods.

spring.graphql.cors.allowed-origin-patterns

Comma-separated list of origin patterns to allow.

spring.graphql.cors.allowed-origins

Comma-separated list of origins to allow with '*' allowing all origins.

spring.graphql.cors.exposed-headers

Comma-separated list of headers to include in a response.

spring.graphql.cors.max-age

1800s

How long the response from a pre-flight request can be cached by clients.

spring.graphql.graphiql.enabled

false

Whether the default GraphiQL UI is enabled.

spring.graphql.graphiql.path

/graphiql

Path to the GraphiQL UI endpoint.

spring.graphql.path

/graphql

Path at which to expose a GraphQL request HTTP endpoint.

spring.graphql.rsocket.mapping

Mapping of the RSocket message handler.

spring.graphql.schema.file-extensions

.graphqls,.gqls

File extensions for GraphQL schema files.

spring.graphql.schema.introspection.enabled

true

Whether field introspection should be enabled at the schema level.

spring.graphql.schema.locations

classpath:graphql/**/

Locations of GraphQL schema files.

spring.graphql.schema.printer.enabled

false

Whether the endpoint that prints the schema is enabled.

spring.graphql.websocket.connection-init-timeout

60s

Time within which the initial {@code CONNECTION_INIT} type message must be received.

spring.graphql.websocket.path

Path of the GraphQL WebSocket subscription endpoint.

spring.kafka.listener.idle-partition-event-interval

Time between publishing idle partition consumer events (no data received for partition).

spring.kafka.listener.immediate-stop

false

Whether the container stops after the current record is processed or after all the records from the previous poll are processed.

spring.kafka.retry.topic.attempts

3

Total number of processing attempts made before sending the message to the DLT.

spring.kafka.retry.topic.delay

1s

Canonical backoff period.

spring.kafka.retry.topic.enabled

false

Whether to enable topic-based non-blocking retries.

spring.kafka.retry.topic.max-delay

0

Maximum wait between retries.

spring.kafka.retry.topic.multiplier

0

Multiplier to use for generating the next backoff delay.

spring.kafka.retry.topic.random-back-off

false

Whether to have the backoff delays.

spring.kafka.template.transaction-id-prefix

Transaction id prefix, override the transaction id prefix in the producer factory.

spring.mustache.reactive.media-types

text/html;charset=UTF-8

Media types supported by Mustache views.

spring.mustache.servlet.allow-request-override

false

Whether HttpServletRequest attributes are allowed to override (hide) controller generated model attributes of the same name.

spring.mustache.servlet.allow-session-override

false

Whether HttpSession attributes are allowed to override (hide) controller generated model attributes of the same name.

spring.mustache.servlet.cache

false

Whether to enable template caching.

spring.mustache.servlet.content-type

Content-Type value.

spring.mustache.servlet.expose-request-attributes

false

Whether all request attributes should be added to the model prior to merging with the template.

spring.mustache.servlet.expose-session-attributes

false

Whether all HttpSession attributes should be added to the model prior to merging with the template.

spring.mustache.servlet.expose-spring-macro-helpers

true

Whether to expose a RequestContext for use by Spring’s macro library, under the name "springMacroRequestContext".

spring.rabbitmq.stream.name

Name of the stream.

spring.redis.sentinel.username

Login username for authenticating with sentinel(s).

spring.rsocket.server.ssl.certificate

spring.rsocket.server.ssl.certificate-private-key

spring.rsocket.server.ssl.trust-certificate

spring.rsocket.server.ssl.trust-certificate-private-key

spring.security.oauth2.resourceserver.jwt.audiences

Identifies the recipients that the JWT is intended for.

Removed in 2.7.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.mode

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

spring.flyway.fail-on-missing-locations

spring.mongodb.embedded.features

Feature support has been removed from Embedded Mongo.

Clone this wiki locally