Migrate Spring Boot properties to 4.0
org.openrewrite.java.spring.boot4.SpringBootProperties_4_0
Migrate properties found in application.properties and application.yml.
Tags
Recipe source
GitHub, Issue Tracker, Maven Central
This recipe is composed of more than one recipe. If you want to customize the set of recipes this is composed of, you can find and copy the GitHub source for the recipe from the link above.
This recipe is available under the Moderne Source Available License.
Definition
- Recipe List
- Yaml Recipe List
- Change the key of a Spring application property
- oldPropertyKey:
management.health.mongo.enabled - newPropertyKey:
management.health.mongodb.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.logging.export.enabled - newPropertyKey:
management.opentelemetry.logging.export.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.metrics.mongo.command.enabled - newPropertyKey:
management.metrics.mongodb.command.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.metrics.mongo.connectionpool.enabled - newPropertyKey:
management.metrics.mongodb.connectionpool.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.observations.long-task-timer.enabled - newPropertyKey:
management.metrics.observations.ignored-meters
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging - newPropertyKey:
management.opentelemetry.logging.export
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.compression - newPropertyKey:
management.opentelemetry.logging.export.compression
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.connect-timeout - newPropertyKey:
management.opentelemetry.logging.export.connect-timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.endpoint - newPropertyKey:
management.opentelemetry.logging.export.endpoint
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.export.enabled - newPropertyKey:
management.opentelemetry.logging.export.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.headers - newPropertyKey:
management.opentelemetry.logging.export.headers
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.timeout - newPropertyKey:
management.opentelemetry.logging.export.timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
management.otlp.logging.transport - newPropertyKey:
management.opentelemetry.logging.export.transport
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
server.servlet.encoding.charset - newPropertyKey:
spring.servlet.encoding.charset
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
server.servlet.encoding.enabled - newPropertyKey:
spring.servlet.encoding.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
server.servlet.encoding.force - newPropertyKey:
spring.servlet.encoding.force
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
server.servlet.encoding.force-request - newPropertyKey:
spring.servlet.encoding.force-request
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
server.servlet.encoding.force-response - newPropertyKey:
spring.servlet.encoding.force-response
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.dao.exceptiontranslation.enabled - newPropertyKey:
spring.persistence.exceptiontranslation.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.additional-hosts - newPropertyKey:
spring.mongodb.additional-hosts
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.authentication-database - newPropertyKey:
spring.mongodb.authentication-database
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.database - newPropertyKey:
spring.mongodb.database
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.host - newPropertyKey:
spring.mongodb.host
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.password - newPropertyKey:
spring.mongodb.password
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.port - newPropertyKey:
spring.mongodb.port
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.protocol - newPropertyKey:
spring.mongodb.protocol
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.replica-set-name - newPropertyKey:
spring.mongodb.replica-set-name
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.ssl.bundle - newPropertyKey:
spring.mongodb.ssl.bundle
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.ssl.enabled - newPropertyKey:
spring.mongodb.ssl.enabled
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.uri - newPropertyKey:
spring.mongodb.uri
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.username - newPropertyKey:
spring.mongodb.username
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.data.mongodb.uuid-representation - newPropertyKey:
spring.mongodb.representation.uuid
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.client.connect-timeout - newPropertyKey:
spring.http.clients.connect-timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.client.factory - newPropertyKey:
spring.http.clients.imperative.factory
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.client.read-timeout - newPropertyKey:
spring.http.clients.read-timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.client.redirects - newPropertyKey:
spring.http.clients.redirects
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.client.ssl.bundle - newPropertyKey:
spring.http.clients.ssl.bundle
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.reactiveclient.connect-timeout - newPropertyKey:
spring.http.clients.connect-timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.reactiveclient.connector - newPropertyKey:
spring.http.clients.reactive.connector
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.reactiveclient.read-timeout - newPropertyKey:
spring.http.clients.read-timeout
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.reactiveclient.redirects - newPropertyKey:
spring.http.clients.redirects
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.http.reactiveclient.ssl.bundle - newPropertyKey:
spring.http.clients.ssl.bundle
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.jackson.read - newPropertyKey:
spring.jackson.json.read
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.jackson.write - newPropertyKey:
spring.jackson.json.write
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.kafka.retry.topic.backoff.random - newPropertyKey:
spring.kafka.retry.topic.backoff.jitter
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.cleanup-cron - newPropertyKey:
spring.session.data.redis.cleanup-cron
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.configure-action - newPropertyKey:
spring.session.data.redis.configure-action
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.flush-mode - newPropertyKey:
spring.session.data.redis.flush-mode
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.namespace - newPropertyKey:
spring.session.data.redis.namespace
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.repository-type - newPropertyKey:
spring.session.data.redis.repository-type
- oldPropertyKey:
- Change the key of a Spring application property
- oldPropertyKey:
spring.session.redis.save-mode - newPropertyKey:
spring.session.data.redis.save-mode
- oldPropertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.api-token - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.api-token-type - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.application.cluster-name - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.application.custom-tags - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.application.name - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.application.service-name - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.application.shard-name - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.batch-size - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.connect-timeout - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.enabled - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.global-prefix - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.read-timeout - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.report-day-distribution - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.report-hour-distribution - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.report-minute-distribution - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.metrics.export.step - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.sender.batch-size - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.sender.flush-interval - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.sender.max-queue-size - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.sender.message-size - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.source - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.trace-derived-custom-tag-keys - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.tracing.export.enabled - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
management.wavefront.uri - comment:
This property is deprecated: Wavefront is end-of-life.
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson.generator - comment:
This property is deprecated: Partially replaced by 'spring.jackson.json.read'.
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson.parser - comment:
This property is deprecated: Partially replaced by 'spring.jackson.json.write'.
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.constructor-detector - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.datatype.enum - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.datatype.json-node - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.date-format - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.default-leniency - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.default-property-inclusion - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.deserialization - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.generator - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.locale - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.mapper - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.parser - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.property-naming-strategy - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.serialization - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.time-zone - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.jackson2.visibility - comment:
This property is deprecated: Deprecated in favor of Jackson 3
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.neo4j.pool.metrics-enabled - comment:
This property is deprecated: Use 'management.metrics.enable' to restrict certain metrics.
- propertyKey:
- Comment out Spring properties
- propertyKey:
spring.test.observability.auto-configure - comment:
This property is deprecated: Superseded by 'spring.test.metrics.export' and 'spring.test.tracing.export'.
- propertyKey:
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.spring.boot4.SpringBootProperties_4_0
displayName: Migrate Spring Boot properties to 4.0
description: |
Migrate properties found in `application.properties` and `application.yml`.
tags:
- spring
- boot
recipeList:
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.health.mongo.enabled
newPropertyKey: management.health.mongodb.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.logging.export.enabled
newPropertyKey: management.opentelemetry.logging.export.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.metrics.mongo.command.enabled
newPropertyKey: management.metrics.mongodb.command.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.metrics.mongo.connectionpool.enabled
newPropertyKey: management.metrics.mongodb.connectionpool.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.observations.long-task-timer.enabled
newPropertyKey: management.metrics.observations.ignored-meters
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging
newPropertyKey: management.opentelemetry.logging.export
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.compression
newPropertyKey: management.opentelemetry.logging.export.compression
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.connect-timeout
newPropertyKey: management.opentelemetry.logging.export.connect-timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.endpoint
newPropertyKey: management.opentelemetry.logging.export.endpoint
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.export.enabled
newPropertyKey: management.opentelemetry.logging.export.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.headers
newPropertyKey: management.opentelemetry.logging.export.headers
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.timeout
newPropertyKey: management.opentelemetry.logging.export.timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: management.otlp.logging.transport
newPropertyKey: management.opentelemetry.logging.export.transport
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.servlet.encoding.charset
newPropertyKey: spring.servlet.encoding.charset
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.servlet.encoding.enabled
newPropertyKey: spring.servlet.encoding.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.servlet.encoding.force
newPropertyKey: spring.servlet.encoding.force
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.servlet.encoding.force-request
newPropertyKey: spring.servlet.encoding.force-request
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: server.servlet.encoding.force-response
newPropertyKey: spring.servlet.encoding.force-response
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.dao.exceptiontranslation.enabled
newPropertyKey: spring.persistence.exceptiontranslation.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.additional-hosts
newPropertyKey: spring.mongodb.additional-hosts
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.authentication-database
newPropertyKey: spring.mongodb.authentication-database
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.database
newPropertyKey: spring.mongodb.database
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.host
newPropertyKey: spring.mongodb.host
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.password
newPropertyKey: spring.mongodb.password
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.port
newPropertyKey: spring.mongodb.port
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.protocol
newPropertyKey: spring.mongodb.protocol
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.replica-set-name
newPropertyKey: spring.mongodb.replica-set-name
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.ssl.bundle
newPropertyKey: spring.mongodb.ssl.bundle
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.ssl.enabled
newPropertyKey: spring.mongodb.ssl.enabled
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.uri
newPropertyKey: spring.mongodb.uri
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.username
newPropertyKey: spring.mongodb.username
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.data.mongodb.uuid-representation
newPropertyKey: spring.mongodb.representation.uuid
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.client.connect-timeout
newPropertyKey: spring.http.clients.connect-timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.client.factory
newPropertyKey: spring.http.clients.imperative.factory
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.client.read-timeout
newPropertyKey: spring.http.clients.read-timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.client.redirects
newPropertyKey: spring.http.clients.redirects
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.client.ssl.bundle
newPropertyKey: spring.http.clients.ssl.bundle
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.reactiveclient.connect-timeout
newPropertyKey: spring.http.clients.connect-timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.reactiveclient.connector
newPropertyKey: spring.http.clients.reactive.connector
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.reactiveclient.read-timeout
newPropertyKey: spring.http.clients.read-timeout
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.reactiveclient.redirects
newPropertyKey: spring.http.clients.redirects
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.http.reactiveclient.ssl.bundle
newPropertyKey: spring.http.clients.ssl.bundle
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.jackson.read
newPropertyKey: spring.jackson.json.read
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.jackson.write
newPropertyKey: spring.jackson.json.write
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.kafka.retry.topic.backoff.random
newPropertyKey: spring.kafka.retry.topic.backoff.jitter
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.cleanup-cron
newPropertyKey: spring.session.data.redis.cleanup-cron
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.configure-action
newPropertyKey: spring.session.data.redis.configure-action
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.flush-mode
newPropertyKey: spring.session.data.redis.flush-mode
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.namespace
newPropertyKey: spring.session.data.redis.namespace
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.repository-type
newPropertyKey: spring.session.data.redis.repository-type
- org.openrewrite.java.spring.ChangeSpringPropertyKey:
oldPropertyKey: spring.session.redis.save-mode
newPropertyKey: spring.session.data.redis.save-mode
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.api-token
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.api-token-type
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.application.cluster-name
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.application.custom-tags
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.application.name
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.application.service-name
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.application.shard-name
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.batch-size
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.connect-timeout
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.enabled
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.global-prefix
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.read-timeout
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.report-day-distribution
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.report-hour-distribution
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.report-minute-distribution
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.metrics.export.step
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.sender.batch-size
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.sender.flush-interval
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.sender.max-queue-size
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.sender.message-size
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.source
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.trace-derived-custom-tag-keys
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.tracing.export.enabled
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: management.wavefront.uri
comment: This property is deprecated: Wavefront is end-of-life.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson.generator
comment: This property is deprecated: Partially replaced by 'spring.jackson.json.read'.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson.parser
comment: This property is deprecated: Partially replaced by 'spring.jackson.json.write'.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.constructor-detector
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.datatype.enum
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.datatype.json-node
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.date-format
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.default-leniency
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.default-property-inclusion
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.deserialization
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.generator
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.locale
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.mapper
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.parser
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.property-naming-strategy
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.serialization
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.time-zone
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.jackson2.visibility
comment: This property is deprecated: Deprecated in favor of Jackson 3
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.neo4j.pool.metrics-enabled
comment: This property is deprecated: Use 'management.metrics.enable' to restrict certain metrics.
- org.openrewrite.java.spring.CommentOutSpringPropertyKey:
propertyKey: spring.test.observability.auto-configure
comment: This property is deprecated: Superseded by 'spring.test.metrics.export' and 'spring.test.tracing.export'.
Used by
This recipe is used as part of the following composite recipes:
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-spring in your build file or by running a shell command (in which case no build changes are needed):
- Gradle
- Gradle init script
- Maven POM
- Maven Command Line
- Moderne CLI
- Add the following to your
build.gradlefile:
plugins {
id("org.openrewrite.rewrite") version("latest.release")
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot4.SpringBootProperties_4_0")
setExportDatatables(true)
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-spring:6.18.0")
}
- Run
gradle rewriteRunto run the recipe.
- Create a file named
init.gradlein the root of your project.
initscript {
repositories {
maven { url "https://plugins.gradle.org/m2" }
}
dependencies { classpath("org.openrewrite:plugin:7.20.0") }
}
rootProject {
plugins.apply(org.openrewrite.gradle.RewritePlugin)
dependencies {
rewrite("org.openrewrite.recipe:rewrite-spring:6.18.0")
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot4.SpringBootProperties_4_0")
setExportDatatables(true)
}
afterEvaluate {
if (repositories.isEmpty()) {
repositories {
mavenCentral()
}
}
}
}
- Run the recipe.
gradle --init-script init.gradle rewriteRun
- Add the following to your
pom.xmlfile:
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>6.23.0</version>
<configuration>
<exportDatatables>true</exportDatatables>
<activeRecipes>
<recipe>org.openrewrite.java.spring.boot4.SpringBootProperties_4_0</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-spring</artifactId>
<version>6.18.0</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
- Run
mvn rewrite:runto run the recipe.
You will need to have Maven installed on your machine before you can run the following command.
mvn -U org.openrewrite.maven:rewrite-maven-plugin:run -Drewrite.recipeArtifactCoordinates=org.openrewrite.recipe:rewrite-spring:RELEASE -Drewrite.activeRecipes=org.openrewrite.java.spring.boot4.SpringBootProperties_4_0 -Drewrite.exportDatatables=true
You will need to have configured the Moderne CLI on your machine before you can run the following command.
mod run . --recipe SpringBootProperties_4_0
If the recipe is not available locally, then you can install it using:
mod config recipes jar install org.openrewrite.recipe:rewrite-spring:6.18.0
See how this recipe works across multiple open-source repositories
Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.
Data Tables
- SourcesFileResults
- SourcesFileErrors
- RecipeRunStats
Source files that had results
org.openrewrite.table.SourcesFileResults
Source files that were modified by the recipe run.
| Column Name | Description |
|---|---|
| Source path before the run | The source path of the file before the run. null when a source file was created during the run. |
| Source path after the run | A recipe may modify the source path. This is the path after the run. null when a source file was deleted during the run. |
| Parent of the recipe that made changes | In a hierarchical recipe, the parent of the recipe that made a change. Empty if this is the root of a hierarchy or if the recipe is not hierarchical at all. |
| Recipe that made changes | The specific recipe that made a change. |
| Estimated time saving | An estimated effort that a developer to fix manually instead of using this recipe, in unit of seconds. |
| Cycle | The recipe cycle in which the change was made. |
Source files that errored on a recipe
org.openrewrite.table.SourcesFileErrors
The details of all errors produced by a recipe run.
| Column Name | Description |
|---|---|
| Source path | The file that failed to parse. |
| Recipe that made changes | The specific recipe that made a change. |
| Stack trace | The stack trace of the failure. |
Recipe performance
org.openrewrite.table.RecipeRunStats
Statistics used in analyzing the performance of recipes.
| Column Name | Description |
|---|---|
| The recipe | The recipe whose stats are being measured both individually and cumulatively. |
| Source file count | The number of source files the recipe ran over. |
| Source file changed count | The number of source files which were changed in the recipe run. Includes files created, deleted, and edited. |
| Cumulative scanning time (ns) | The total time spent across the scanning phase of this recipe. |
| Max scanning time (ns) | The max time scanning any one source file. |
| Cumulative edit time (ns) | The total time spent across the editing phase of this recipe. |
| Max edit time (ns) | The max time editing any one source file. |