Remember, though, that command-line arguments take precedence over any values specified in application.yml. So, if you provide an environment variable as both a command-line argument and in application.yml, the command-line argument will override the application.yml value.
https://www.matheusmello.io/posts/java-does-application-yml-support-environment-variables

