I am running a jar which reads from properties in code. Now i want to set few variables at environment level and pass them as command line arguments to override properties. How can i do that?
ex:
java -jar test.jar --server.http.host-url=https://x.com
in the above command, property value server.http.host-url is set as env variable with name "server.http.host.value". how do i pass it as variable so it will resolved from env variables like this
java -jar test.jar --server.http.host-url=${server.http.host.value}