https://kotlinlang.org logo
Title
t

Thiyagu

06/01/2020, 6:29 PM
Do anyone tried multiple configuration something like environment based configuration which spring boot provides???
b

bitkid

06/01/2020, 7:01 PM
i am not sure how spring does it but if you go for a nested format in your config file it should be easy to support different configurations. application { dev { bla }, prod {bla}}
t

Thiyagu

06/01/2020, 7:24 PM
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
t

Thiyagu

06/01/2020, 8:36 PM
Yes.. I'm looking something similar to this. Thanks