Use environment variable in spring properties file
I'm new to spring
I have a file awsCredentials.properties
.
AWS.Access.ID=value
AWS.Secret.ID=value
Now I already have the system environment variables in which I have defined all the credentials. Now I want to use this in a file awsCredentials.properties
. So whenever I commit, these credentials shouldn't be in git. But when I try to do it like -
AWS.Access.ID=${AWS_ACCESSKEY} this is not working.
can anyone help me with this?
+3
user7234816
source
to share