I have a use case where i have a custom PropertySourcesPlaceholderConfigurer which reads properties from Database and have a dependency on DataSource Bean.
Earlier, Datasource bean was getting created using credentials in .java file only. and so things were working fine.
Now, we want to pick those credentials profile based from .properties/.yml file.
But, now it's like a cycle i.e. Spring properties environment needs Datasource and Datasource needs .properties.
Has anybody faced this problem ? Is there any solution ?