How to create property by condition in spring application.properties file

1.7k Views Asked by At

how can I create an if conditional in the spring applicaiton.properties file?.

for example:

restart.enabled=true
project.name=(restart.enabled == true) ? "restartProjectName" : "projectName"

thanks for all :)

0

There are 0 best solutions below