Akshay Lele wrote:
Thank you Mark for the info. I am using a older version of Spring hence would try using PropertyPlaceholderConfigurer. But is there no definite advantage of using approach 1 over 2 right?
Right 6.00123 of one, half dozen of the other.
Meaning they have slight differences, but in general it is the same.
One is just slightly more externalized than the other. But both would require changing a file and redeploying. In the case of the xml file, if it is part of your archive file that you deploy, then you just have one more step to recreating your jar/war package.
Mark