Change the key of a Spring application property
MSALChange Spring application property keys existing in either Properties or YAML files, and in @Value, @ConditionalOnProperty or @SpringBootTest annotations.
org. openrewrite. java. spring. ChangeSpringPropertyKeyRequired
The property key to rename.
The new name for the property key.
Optional
Regex. If any of these property keys exist as direct children of oldPropertyKey, then they will not be moved to newPropertyKey. Separate values with commas.
mod run . --recipe= org. openrewrite. java. spring. ChangeSpringPropertyKey \
-P oldPropertyKey= 'management. metrics. binders. *. enabled' \
-P newPropertyKey= management. metrics. enable. process. filesInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.