Reference
Recipes
Java
Spring
Spring Boot 2.x
Design Partners
Migrate Spring Boot properties to 2.0
** org.openrewrite.java.spring.boot2.SpringBootProperties_2_0** Migrate properties found in application.properties and application.yml.

Source

  • groupId: org.openrewrite.recipe
  • artifactId: rewrite-spring
  • version: 4.25.1

Usage

This recipe has no required configuration options and can be activated directly after taking a dependency on org.openrewrite.recipe:rewrite-spring:4.25.1 in your build file:
Gradle
Maven
build.gradle
plugins {
id("org.openrewrite.rewrite") version("5.26.1")
}
rewrite {
activeRecipe("org.openrewrite.java.spring.boot2.SpringBootProperties_2_0")
}
repositories {
mavenCentral()
}
dependencies {
rewrite("org.openrewrite.recipe:rewrite-spring:4.25.1")
}
pom.xml
<project>
<build>
<plugins>
<plugin>
<groupId>org.openrewrite.maven</groupId>
<artifactId>rewrite-maven-plugin</artifactId>
<version>4.31.1</version>
<configuration>
<activeRecipes>
<recipe>org.openrewrite.java.spring.boot2.SpringBootProperties_2_0</recipe>
</activeRecipes>
</configuration>
<dependencies>
<dependency>
<groupId>org.openrewrite.recipe</groupId>
<artifactId>rewrite-spring</artifactId>
<version>4.25.1</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>
Recipes can also be activated directly from the command line by adding the argument -Drewrite.activeRecipesorg.openrewrite.java.spring.boot2.SpringBootProperties_2_0

Definition

Recipe List
Yaml Recipe List
    • oldPropertyKey: spring.main.show-banner
    • newPropertyKey: spring.main.banner-mode
    • oldPropertyKey: spring.main.show-banner
    • newPropertyKey: spring.main.banner-mode
    • oldPropertyKey: spring.main.web-environment
    • newPropertyKey: spring.main.web-application-type
    • oldPropertyKey: spring.main.web-environment
    • newPropertyKey: spring.main.web-application-type
    • oldPropertyKey: banner.charset
    • newPropertyKey: spring.banner.charset
    • oldPropertyKey: banner.charset
    • newPropertyKey: spring.banner.charset
    • oldPropertyKey: banner.image.height
    • newPropertyKey: spring.banner.image.height
    • oldPropertyKey: banner.image.height
    • newPropertyKey: spring.banner.image.height
    • oldPropertyKey: banner.image.invert
    • newPropertyKey: spring.banner.image.invert
    • oldPropertyKey: banner.image.invert
    • newPropertyKey: spring.banner.image.invert
    • oldPropertyKey: banner.image.location
    • newPropertyKey: spring.banner.image.location
    • oldPropertyKey: banner.image.location
    • newPropertyKey: spring.banner.image.location
    • oldPropertyKey: banner.image.margin
    • newPropertyKey: spring.banner.image.margin
    • oldPropertyKey: banner.image.margin
    • newPropertyKey: spring.banner.image.margin
    • oldPropertyKey: banner.image.width
    • newPropertyKey: spring.banner.image.width
    • oldPropertyKey: banner.image.width
    • newPropertyKey: spring.banner.image.width
    • oldPropertyKey: banner.location
    • newPropertyKey: spring.banner.location
    • oldPropertyKey: banner.location
    • newPropertyKey: spring.banner.location
    • oldPropertyKey: security.filter-dispatcher-types
    • newPropertyKey: spring.security.filter.dispatcher-types
    • oldPropertyKey: security.filter-dispatcher-types
    • newPropertyKey: spring.security.filter.dispatcher-types
    • oldPropertyKey: security.filter-order
    • newPropertyKey: spring.security.filter.order
    • oldPropertyKey: security.filter-order
    • newPropertyKey: spring.security.filter.order
    • oldPropertyKey: spring.data.cassandra.repositories.enabled
    • newPropertyKey: spring.data.cassandra.repositories.type
    • oldPropertyKey: spring.data.cassandra.repositories.enabled
    • newPropertyKey: spring.data.cassandra.repositories.type
    • oldPropertyKey: spring.data.couchbase.repositories.enabled
    • newPropertyKey: spring.data.couchbase.repositories.type
    • oldPropertyKey: spring.data.couchbase.repositories.enabled
    • newPropertyKey: spring.data.couchbase.repositories.type
    • oldPropertyKey: spring.data.mongodb.repositories.enabled
    • newPropertyKey: spring.data.mongodb.repositories.type
    • oldPropertyKey: spring.data.mongodb.repositories.enabled
    • newPropertyKey: spring.data.mongodb.repositories.type
    • oldPropertyKey: spring.jta.bitronix.properties.background-recovery-interval
    • newPropertyKey: spring.jta.bitronix.properties.background-recovery-interval-seconds
    • oldPropertyKey: spring.jta.bitronix.properties.background-recovery-interval
    • newPropertyKey: spring.jta.bitronix.properties.background-recovery-interval-seconds
    • oldPropertyKey: spring.mvc.media-types
    • newPropertyKey: spring.mvc.contentnegotiation.media-types
    • oldPropertyKey: spring.mvc.media-types
    • newPropertyKey: spring.mvc.contentnegotiation.media-types
    • oldPropertyKey: flyway.baseline-description
    • newPropertyKey: spring.flyway.baseline-description
    • oldPropertyKey: flyway.baseline-description
    • newPropertyKey: spring.flyway.baseline-description
    • oldPropertyKey: flyway.baseline-on-migrate
    • newPropertyKey: spring.flyway.baseline-on-migrate
    • oldPropertyKey: flyway.baseline-on-migrate
    • newPropertyKey: spring.flyway.baseline-on-migrate
    • oldPropertyKey: flyway.baseline-version
    • newPropertyKey: spring.flyway.baseline-version
    • oldPropertyKey: flyway.baseline-version
    • newPropertyKey: spring.flyway.baseline-version
    • oldPropertyKey: flyway.check-location
    • newPropertyKey: spring.flyway.check-location
    • oldPropertyKey: flyway.check-location
    • newPropertyKey: spring.flyway.check-location
    • oldPropertyKey: flyway.clean-on-validation-error
    • newPropertyKey: spring.flyway.clean-on-validation-error
    • oldPropertyKey: flyway.clean-on-validation-error
    • newPropertyKey: spring.flyway.clean-on-validation-error
    • oldPropertyKey: flyway.enabled
    • newPropertyKey: spring.flyway.enabled
    • oldPropertyKey: flyway.enabled
    • newPropertyKey: spring.flyway.enabled
    • oldPropertyKey: flyway.encoding
    • newPropertyKey: spring.flyway.encoding
    • oldPropertyKey: flyway.encoding
    • newPropertyKey: spring.flyway.encoding
    • oldPropertyKey: flyway.init-sqls
    • newPropertyKey: spring.flyway.init-sqls
    • oldPropertyKey: flyway.init-sqls
    • newPropertyKey: spring.flyway.init-sqls
    • oldPropertyKey: flyway.locations
    • newPropertyKey: spring.flyway.locations
    • oldPropertyKey: flyway.locations
    • newPropertyKey: spring.flyway.locations
    • oldPropertyKey: flyway.out-of-order
    • newPropertyKey: spring.flyway.out-of-order
    • oldPropertyKey: flyway.out-of-order
    • newPropertyKey: spring.flyway.out-of-order
    • oldPropertyKey: flyway.password
    • newPropertyKey: spring.flyway.password
    • oldPropertyKey: flyway.password
    • newPropertyKey: spring.flyway.password
    • oldPropertyKey: flyway.placeholder-prefix
    • newPropertyKey: spring.flyway.placeholder-prefix
    • oldPropertyKey: flyway.placeholder-prefix
    • newPropertyKey: spring.flyway.placeholder-prefix
    • oldPropertyKey: flyway.placeholder-replacement
    • newPropertyKey: spring.flyway.placeholder-replacement
    • oldPropertyKey: flyway.placeholder-replacement
    • newPropertyKey: spring.flyway.placeholder-replacement
    • oldPropertyKey: flyway.placeholder-suffix
    • newPropertyKey: spring.flyway.placeholder-suffix
    • oldPropertyKey: flyway.placeholder-suffix
    • newPropertyKey: spring.flyway.placeholder-suffix
    • oldPropertyKey: flyway.placeholders
    • newPropertyKey: spring.flyway.placeholders
    • oldPropertyKey: flyway.placeholders
    • newPropertyKey: spring.flyway.placeholders
    • oldPropertyKey: flyway.schemas
    • newPropertyKey: spring.flyway.schemas
    • oldPropertyKey: flyway.schemas
    • newPropertyKey: spring.flyway.schemas
    • oldPropertyKey: flyway.sql-migration-prefix
    • newPropertyKey: spring.flyway.sql-migration-prefix
    • oldPropertyKey: flyway.sql-migration-prefix
    • newPropertyKey: spring.flyway.sql-migration-prefix
    • oldPropertyKey: flyway.sql-migration-separator
    • newPropertyKey: spring.flyway.sql-migration-separator
    • oldPropertyKey: flyway.sql-migration-separator
    • newPropertyKey: spring.flyway.sql-migration-separator
    • oldPropertyKey: flyway.sql-migration-suffix
    • newPropertyKey: spring.flyway.sql-migration-suffixes
    • oldPropertyKey: flyway.sql-migration-suffix
    • newPropertyKey: spring.flyway.sql-migration-suffixes
    • oldPropertyKey: flyway.table
    • newPropertyKey: spring.flyway.table
    • oldPropertyKey: flyway.table
    • newPropertyKey: spring.flyway.table
    • oldPropertyKey: flyway.target
    • newPropertyKey: spring.flyway.target
    • oldPropertyKey: flyway.target
    • newPropertyKey: spring.flyway.target
    • oldPropertyKey: flyway.url
    • newPropertyKey: spring.flyway.url
    • oldPropertyKey: flyway.url
    • newPropertyKey: spring.flyway.url
    • oldPropertyKey: flyway.user
    • newPropertyKey: spring.flyway.user
    • oldPropertyKey: flyway.user
    • newPropertyKey: spring.flyway.user
    • oldPropertyKey: flyway.validate-on-migrate
    • newPropertyKey: spring.flyway.validate-on-migrate
    • oldPropertyKey: flyway.validate-on-migrate
    • newPropertyKey: spring.flyway.validate-on-migrate
    • oldPropertyKey: liquibase.change-log
    • newPropertyKey: spring.liquibase.change-log
    • oldPropertyKey: liquibase.change-log
    • newPropertyKey: spring.liquibase.change-log
    • oldPropertyKey: liquibase.check-change-log-location
    • newPropertyKey: spring.liquibase.check-change-log-location
    • oldPropertyKey: liquibase.check-change-log-location
    • newPropertyKey: spring.liquibase.check-change-log-location
    • oldPropertyKey: liquibase.contexts
    • newPropertyKey: spring.liquibase.contexts
    • oldPropertyKey: liquibase.contexts
    • newPropertyKey: spring.liquibase.contexts
    • oldPropertyKey: liquibase.default-schema
    • newPropertyKey: spring.liquibase.default-schema
    • oldPropertyKey: liquibase.default-schema
    • newPropertyKey: spring.liquibase.default-schema
    • oldPropertyKey: liquibase.drop-first
    • newPropertyKey: spring.liquibase.drop-first
    • oldPropertyKey: liquibase.drop-first
    • newPropertyKey: spring.liquibase.drop-first
    • oldPropertyKey: liquibase.enabled
    • newPropertyKey: spring.liquibase.enabled
    • oldPropertyKey: liquibase.enabled
    • newPropertyKey: spring.liquibase.enabled
    • oldPropertyKey: liquibase.labels
    • newPropertyKey: spring.liquibase.labels
    • oldPropertyKey: liquibase.labels
    • newPropertyKey: spring.liquibase.labels
    • oldPropertyKey: liquibase.parameters
    • newPropertyKey: spring.liquibase.parameters
    • oldPropertyKey: liquibase.parameters
    • newPropertyKey: spring.liquibase.parameters
    • oldPropertyKey: liquibase.password
    • newPropertyKey: spring.liquibase.password
    • oldPropertyKey: liquibase.password
    • newPropertyKey: spring.liquibase.password
    • oldPropertyKey: liquibase.rollback-file
    • newPropertyKey: spring.liquibase.rollback-file
    • oldPropertyKey: liquibase.rollback-file
    • newPropertyKey: spring.liquibase.rollback-file
    • oldPropertyKey: liquibase.url
    • newPropertyKey: spring.liquibase.url
    • oldPropertyKey: liquibase.url
    • newPropertyKey: spring.liquibase.url
    • oldPropertyKey: liquibase.user
    • newPropertyKey: spring.liquibase.user
    • oldPropertyKey: liquibase.user
    • newPropertyKey: spring.liquibase.user
    • oldPropertyKey: security.user.name
    • newPropertyKey: spring.security.user.name
    • oldPropertyKey: security.user.name
    • newPropertyKey: spring.security.user.name
    • oldPropertyKey: security.user.password
    • newPropertyKey: spring.security.user.password
    • oldPropertyKey: security.user.password
    • newPropertyKey: spring.security.user.password
    • oldPropertyKey: security.user.role
    • newPropertyKey: spring.security.user.roles
    • oldPropertyKey: security.user.role
    • newPropertyKey: spring.security.user.roles
    • oldPropertyKey: server.context-parameters
    • newPropertyKey: server.servlet.context-parameters
    • oldPropertyKey: server.context-parameters
    • newPropertyKey: server.servlet.context-parameters
    • oldPropertyKey: server.context-path
    • newPropertyKey: server.servlet.context-path
    • oldPropertyKey: server.context-path
    • newPropertyKey: server.servlet.context-path
    • oldPropertyKey: server.display-name
    • newPropertyKey: server.servlet.application-display-name
    • oldPropertyKey: server.display-name
    • newPropertyKey: server.servlet.application-display-name
    • oldPropertyKey: server.jsp-servlet.class-name
    • newPropertyKey: server.servlet.jsp.class-name
    • oldPropertyKey: server.jsp-servlet.class-name
    • newPropertyKey: server.servlet.jsp.class-name
    • oldPropertyKey: server.jsp-servlet.init-parameters
    • newPropertyKey: server.servlet.jsp.init-parameters
    • oldPropertyKey: server.jsp-servlet.init-parameters
    • newPropertyKey: server.servlet.jsp.init-parameters
    • oldPropertyKey: server.jsp-servlet.registered
    • newPropertyKey: server.servlet.jsp.registered
    • oldPropertyKey: server.jsp-servlet.registered
    • newPropertyKey: server.servlet.jsp.registered
    • oldPropertyKey: server.servlet-path
    • newPropertyKey: server.servlet.path
    • oldPropertyKey: server.servlet-path
    • newPropertyKey: server.servlet.path
    • oldPropertyKey: server.session.cookie.comment
    • newPropertyKey: server.servlet.session.cookie.comment
    • oldPropertyKey: server.session.cookie.comment
    • newPropertyKey: server.servlet.session.cookie.comment
    • oldPropertyKey: server.session.cookie.domain
    • newPropertyKey: server.servlet.session.cookie.domain
    • oldPropertyKey: server.session.cookie.domain
    • newPropertyKey: server.servlet.session.cookie.domain
    • oldPropertyKey: server.session.cookie.http-only
    • newPropertyKey: server.servlet.session.cookie.http-only
    • oldPropertyKey: server.session.cookie.http-only
    • newPropertyKey: server.servlet.session.cookie.http-only
    • oldPropertyKey: server.session.cookie.max-age
    • newPropertyKey: server.servlet.session.cookie.max-age
    • oldPropertyKey: server.session.cookie.max-age
    • newPropertyKey: server.servlet.session.cookie.max-age
    • oldPropertyKey: server.session.cookie.name
    • newPropertyKey: server.servlet.session.cookie.name
    • oldPropertyKey: server.session.cookie.name
    • newPropertyKey: server.servlet.session.cookie.name
    • oldPropertyKey: server.session.cookie.path
    • newPropertyKey: server.servlet.session.cookie.path
    • oldPropertyKey: server.session.cookie.path
    • newPropertyKey: server.servlet.session.cookie.path
    • oldPropertyKey: server.session.cookie.secure
    • newPropertyKey: server.servlet.session.cookie.secure
    • oldPropertyKey: server.session.cookie.secure
    • newPropertyKey: server.servlet.session.cookie.secure
    • oldPropertyKey: server.session.persistent
    • newPropertyKey: server.servlet.session.persistent
    • oldPropertyKey: server.session.persistent
    • newPropertyKey: server.servlet.session.persistent
    • oldPropertyKey: server.session.store-dir
    • newPropertyKey: server.servlet.session.store-dir
    • oldPropertyKey: server.session.store-dir
    • newPropertyKey: server.servlet.session.store-dir
    • oldPropertyKey: server.session.timeout
    • newPropertyKey: server.servlet.session.timeout
    • oldPropertyKey: server.session.timeout
    • newPropertyKey: server.servlet.session.timeout
    • oldPropertyKey: server.session.tracking-modes
    • newPropertyKey: server.servlet.session.tracking-modes
    • oldPropertyKey: server.session.tracking-modes
    • newPropertyKey: server.servlet.session.tracking-modes
    • oldPropertyKey: spring.batch.initializer.enabled
    • newPropertyKey: spring.batch.initialize-schema