Migrate Spring Boot properties to 2.1
org.openrewrite.java.spring.boot2.SpringBootProperties_2_1
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.max-http-post-size
newPropertyKey:
server.jetty.max-http-form-post-size
Change the key of a spring application property
oldPropertyKey:
server.servlet.path
newPropertyKey:
spring.mvc.servlet.path
Change the key of a spring application property
oldPropertyKey:
server.tomcat.max-http-header-size
newPropertyKey:
server.max-http-header-size
Change the key of a spring application property
oldPropertyKey:
server.tomcat.max-http-post-size
newPropertyKey:
server.tomcat.max-http-form-post-size
Change the key of a spring application property
oldPropertyKey:
spring.activemq.pool.maximum-active-session-per-connection
newPropertyKey:
spring.activemq.pool.max-sessions-per-connection
Change the key of a spring application property
oldPropertyKey:
spring.artemis.pool.maximum-active-session-per-connection
newPropertyKey:
spring.artemis.pool.max-sessions-per-connection
Change the key of a spring application property
oldPropertyKey:
spring.kafka.admin.ssl.keystore-location
newPropertyKey:
spring.kafka.admin.ssl.key-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.admin.ssl.keystore-password
newPropertyKey:
spring.kafka.admin.ssl.key-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.admin.ssl.truststore-location
newPropertyKey:
spring.kafka.admin.ssl.trust-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.admin.ssl.truststore-password
newPropertyKey:
spring.kafka.admin.ssl.trust-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.consumer.ssl.keystore-location
newPropertyKey:
spring.kafka.consumer.ssl.key-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.consumer.ssl.keystore-password
newPropertyKey:
spring.kafka.consumer.ssl.key-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.consumer.ssl.truststore-location
newPropertyKey:
spring.kafka.consumer.ssl.trust-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.consumer.ssl.truststore-password
newPropertyKey:
spring.kafka.consumer.ssl.trust-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.producer.ssl.keystore-location
newPropertyKey:
spring.kafka.producer.ssl.key-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.producer.ssl.keystore-password
newPropertyKey:
spring.kafka.producer.ssl.key-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.producer.ssl.truststore-location
newPropertyKey:
spring.kafka.producer.ssl.trust-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.producer.ssl.truststore-password
newPropertyKey:
spring.kafka.producer.ssl.trust-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.ssl.keystore-location
newPropertyKey:
spring.kafka.ssl.key-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.ssl.keystore-password
newPropertyKey:
spring.kafka.ssl.key-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.ssl.truststore-location
newPropertyKey:
spring.kafka.ssl.trust-store-location
Change the key of a spring application property
oldPropertyKey:
spring.kafka.ssl.truststore-password
newPropertyKey:
spring.kafka.ssl.trust-store-password
Change the key of a spring application property
oldPropertyKey:
spring.kafka.streams.cache-max-bytes-buffering
newPropertyKey:
spring.kafka.streams.cache-max-size-buffering
Change the key of a spring application property
oldPropertyKey:
spring.mvc.formcontent.putfilter.enabled
newPropertyKey:
spring.mvc.formcontent.filter.enabled
Change the key of a spring application property
oldPropertyKey:
spring.rabbitmq.template.queue
newPropertyKey:
spring.rabbitmq.template.default-receive-queue
Change the key of a spring application property
oldPropertyKey:
spring.resources.chain.gzipped
newPropertyKey:
spring.resources.chain.compressed
Change the key of a spring application property
oldPropertyKey:
management.metrics.binders.files.enabled
newPropertyKey:
management.metrics.enable.process.files
Change the key of a spring application property
oldPropertyKey:
management.metrics.binders.jvm.enabled
newPropertyKey:
management.metrics.enable.jvm
Change the key of a spring application property
oldPropertyKey:
management.metrics.binders.logback.enabled
newPropertyKey:
management.metrics.enable.logback
Change the key of a spring application property
oldPropertyKey:
management.endpoints.jmx.unique-names
newPropertyKey:
spring.jmx.unique-names
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