24.5 Placeholders in properties

The values in application.properties are filtered through the existing Environment when they are used so you can refer back to previously defined values (e.g. from System properties).

app.name=MyApp
app.description=${app.name} is a Spring Boot application
[Tip] Tip
You can also use this technique to create ‘short’ variants of existing Spring Boot properties. See the Section 69.4, “Use ‘short’ command line arguments” how-to for details.

results matching ""

    No results matching ""