I have a spring boot application. Currently, for a certain requirement, I am trying to read environment variables in application properties. This is what I have in my application.properties file:
notes.userName=${credentials.username}
In environment variables, the value for "credentials.username" is testUser. But while I run the program and try to read from notes.userName, the value is literally "${credentials.username}".
Is there anyother to set environment variables into application properties file.
NOTE: I am aware that I can read the environment variables directly but the requirement is to read the environment variabes from application properties.