I am using Intellij on my Windows laptop and I want to use environment variables in application.properties. Below is an example of application.properties.
server=%APP_SERVER%
I have added a new user environment variable as shown below through IntelliJ Run/Deebug Configurations.
APP_SERVER=localhost
But I see that when I run the application, it is failing to replace this environment property. I tried using ${APP_SERVER} instead of %APP_SERVER% but still no use. Any idea why this is not working.