I want to run my program using java ... -Denv=prod ... and
@PropertySource("classpath:/settings/$idontknowwhat$/database.properties")`
read the properties file: /settings/prod/database.properties
I tried using #{systemProperties['env']} , but it is not allowed with the exception:
Could not open ServletContext resource ['classpath:/settings/#{systemProperties['env']}/database.properties]
source share