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.15.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.
Data Tables
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. |
Source path after the run | A recipe may modify the source path. This is the path after 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 | The total time spent across the scanning phase of this recipe. |
99th percentile scanning time | 99 out of 100 scans completed in this amount of time. |
Max scanning time | The max time scanning any one source file. |
Cumulative edit time | The total time spent across the editing phase of this recipe. |
99th percentile edit time | 99 out of 100 edits completed in this amount of time. |
Max edit time | The max time editing any one source file. |
Usage
This recipe has no required configuration options. It can be activated by adding a dependency on org.openrewrite.recipe:rewrite-spring:5.15.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