Java successfully recognizes the path in my application.properties file when I have the path configured as below:
pathToInputFile=/kcs/data/incoming/ready/
pathToInputFileProcess=/kcs/data/incoming/work/
If I try using an environment variable, the Java program doesn't recognize the path.
(the environmental variable TOM_DATA
is set as /kcs.)
pathToInputFile=${TOM_DATA}/data/incoming/ready/
pathToInputFileProcess=${TOM_DATA}/data/incoming/work/
Can I use an environment variable inside application.properties file?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…