Migrate Spring Boot properties to 2.3
org.openrewrite.java.spring.boot2.SpringBootProperties_2_3
Migrate properties found in application.properties
and application.yml
.
Tags
spring
boot
Recipe source
GitHub, Issue Tracker, Maven Central
groupId: org.openrewrite.recipe
artifactId: rewrite-spring
version: 5.8.0
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.
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-spring:5.8.0
in your build file or by running a shell command (in which case no build changes are needed):
Add the following to your
build.gradle
file:
Run
gradle rewriteRun
to run the recipe.
Definition
Change the key of a spring application property
oldPropertyKey:
server.jetty.acceptors
newPropertyKey:
server.jetty.threads.acceptors
Change the key of a spring application property
oldPropertyKey:
server.jetty.max-queue-capacity
newPropertyKey:
server.jetty.threads.max-queue-capacity
Change the key of a spring application property
oldPropertyKey:
server.jetty.max-threads
newPropertyKey:
server.jetty.threads.max
Change the key of a spring application property
oldPropertyKey:
server.jetty.min-threads
newPropertyKey:
server.jetty.threads.min
Change the key of a spring application property
oldPropertyKey:
server.jetty.selectors
newPropertyKey:
server.jetty.threads.selectors
Change the key of a spring application property
oldPropertyKey:
server.jetty.thread-idle-timeout
newPropertyKey:
server.jetty.threads.idle-timeout
Change the key of a spring application property
oldPropertyKey:
server.tomcat.host-header
newPropertyKey:
server.tomcat.remoteip.host-header
Change the key of a spring application property
oldPropertyKey:
server.tomcat.internal-proxies
newPropertyKey:
server.tomcat.remoteip.internal-proxies
Change the key of a spring application property
oldPropertyKey:
server.tomcat.max-threads
newPropertyKey:
server.tomcat.threads.max
Change the key of a spring application property
oldPropertyKey:
server.tomcat.min-spare-threads
newPropertyKey:
server.tomcat.threads.min-spare
Change the key of a spring application property
oldPropertyKey:
server.tomcat.port-header
newPropertyKey:
server.tomcat.remote.port-header
Change the key of a spring application property
oldPropertyKey:
server.tomcat.protocol-header
newPropertyKey:
server.tomcat.remoteip.protocol-header
Change the key of a spring application property
oldPropertyKey:
server.tomcat.protocol-header-https-value
newPropertyKey:
server.tomcat.remoteip.protocol-header-https-value
Change the key of a spring application property
oldPropertyKey:
server.tomcat.remote-ip-header
newPropertyKey:
server.tomcat.remoteip.remote-ip-header
Change the key of a spring application property
oldPropertyKey:
server.undertow.io-threads
newPropertyKey:
server.undertow.threads.io
Change the key of a spring application property
oldPropertyKey:
server.undertow.worker-threads
newPropertyKey:
server.undertow.threads.worker
Change the key of a spring application property
oldPropertyKey:
spring.couchbase.bootstrap-hosts
newPropertyKey:
spring.couchbase.connection-string
Change the key of a spring application property
oldPropertyKey:
spring.couchbase.env.endpoints.queryservice.max-endpoints
newPropertyKey:
spring.couchbase.env.io.max-endpoints
Change the key of a spring application property
oldPropertyKey:
spring.couchbase.env.endpoints.queryservice.min-endpoints
newPropertyKey:
spring.couchbase.env.io.min-endpoints
Change the key of a spring application property
oldPropertyKey:
spring.couchbase.env.endpoints.viewservice.max-endpoints
newPropertyKey:
spring.couchbase.env.io.max-endpoints
Change the key of a spring application property
oldPropertyKey:
spring.couchbase.env.endpoints.viewservice.min-endpoints
newPropertyKey:
spring.couchbase.env.io.min-endpoints
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.cluster-name
newPropertyKey:
spring.data.cassandra.session-name
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.connect-timeout
newPropertyKey:
spring.data.cassandra.connection.init-query-timeout
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.consistency-level
newPropertyKey:
spring.data.cassandra.request.consistency
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.fetch-size
newPropertyKey:
spring.data.cassandra.request.page-size
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.pool.max-queue-size
newPropertyKey:
spring.data.cassandra.request.throttler.max-queue-size
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.read-timeout
newPropertyKey:
spring.data.cassandra.request.timeout
Change the key of a spring application property
oldPropertyKey:
spring.data.cassandra.serial-consistency-level
newPropertyKey:
spring.data.cassandra.request.serial-consistency
Change the key of a spring application property
oldPropertyKey:
spring.http.converters.preferred-json-mapper
newPropertyKey:
spring.mvc.converters.preferred-json-mapper
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.charset
newPropertyKey:
server.servlet.encoding.charset
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.enabled
newPropertyKey:
server.servlet.encoding.enabled
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.force
newPropertyKey:
server.servlet.encoding.force
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.force-request
newPropertyKey:
server.servlet.encoding.force-request
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.force-response
newPropertyKey:
server.servlet.encoding.force-response
Change the key of a spring application property
oldPropertyKey:
spring.http.encoding.mapping
newPropertyKey:
server.servlet.encoding.mapping
Change the key of a spring application property
oldPropertyKey:
spring.http.log-request-details
newPropertyKey:
spring.mvc.log-request-details
Change the key of a spring application property
oldPropertyKey:
spring.mvc.date-format
newPropertyKey:
spring.mvc.format.date
Change the key of a spring application property
oldPropertyKey:
spring.webflux.date-format
newPropertyKey:
spring.webflux.format.date
Change the key of a spring application property
oldPropertyKey:
management.health.probes.enabled
newPropertyKey:
management.endpoint.health.probes.enabled
Change the key of a spring application property
oldPropertyKey:
management.metrics.distribution.sla
newPropertyKey:
management.metrics.distribution.slo
See how this recipe works across multiple open-source repositories
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.
Contributors
Tyler Van Gorder, Knut Wannheden, Nick McKinney, Patrick, Tim te Beek, Jonathan Schnéider, Kyle Scully
Last updated