Add a Spring configuration property

MSAL

Add a spring configuration property to a configuration file if it does not already exist in that file.

org.openrewrite.java.spring.AddSpringProperty

Required

The property key to add.

The value of the new property key.

Optional

A comment that will be added to the new property.

Each value in this list represents a glob expression that is used to match which files will be modified. If this value is not present, this recipe will query the execution context for reasonable defaults. ("**/application.yml", "**/application.yml", and "**/application.properties". Separate values with commas.

mod run . --recipe=org.openrewrite.java.spring.AddSpringProperty \ -P property=management.metrics.enable.process.files \ -P value=true

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.