Ravi Pandya wrote:
Hi to All,
I have situation in my application.
I have Property file called application.property and that one has some contains.
I want to change that contains at application startup, becore spring load.
I have to call server to get the latest values which I am going to use in my project.
so I have to change that onw before spring load so that I can use that one in my application.
Please guide me on this.
I have some idea that we can use PropertyPlaceholderConfigurer or PropertyOverrideConfigurer, but dont know how.
David Newton wrote:I'd probably look into the property placeholder code and see how it does its variable substitution--just do the same thing, but getting the values from the other location instead of the properties file. My guess is that it shouldn't be that difficult.