Oh nice.. I will try.. in spring it resolve config based on file name.. eg if your current profile is prod, it will be loaded application-prod.yml. you can define all your default config into application.yml. spring will define both yml and precedent will be given to profile based yml if an property defined in both yml