I am looking for a approch for my batch application where I need to store my application in project.git and environment related properties in project-config.git And during deployment my environment specific properties will be used
Application will have local application.properties which will be used locally and one main application.propeties from which we can use {env}.yml(lower env and production env) for env specific properties
There are couple of ways to achieve this.
/home/appuser/project-config
java -jar /home/appuser/project.jar --spring.config.location=/home/appuser/project-config/dev.properties