I would like to have properties, that I can reference via @Value in spring beans, that can only be created dependend on other properties. In particular I am having a propert
Spring can combine properties
myDir=/path/to/mydir myFile=${myDir}/myfile.txt
You can also use a default value without defining your myFile in the properties at first:
myFile
Properties file
myDir=/path/to/mydir
In class:
@Value("#{myFile:${myDir}/myfile.txt}") private String myFileName;