tag:blogger.com,1999:blog-2617241286420044465.post3552145123925241033..comments2023-07-25T15:07:12.383+05:30Comments on TechLads: Java Spring Framework : Multiple PropertyPlaceholderConfigurer configurtionParth Barothttp://www.blogger.com/profile/12842456592664178430noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-2617241286420044465.post-23014232202637289952009-10-07T07:32:11.869+05:302009-10-07T07:32:11.869+05:30I have tried using the 'locations' propert...I have tried using the 'locations' property for 'PropertyPlaceholderConfigurer' and it works if you want to define multiple property files in one PropertyPlaceHolderConfigurer bean, but it doesnt work if you want to define multiple PropertyPlaceHolderConfigurer beans. <br /><br />The technique described in this post, however, works wonders if you want different to define a different PropertyPlaceHolderConfigurer beans for each of the context xml files included in your project.<br /><br />Thank you for this very helpful post!Rhythm Cloudhttps://www.blogger.com/profile/07889695781432050293noreply@blogger.comtag:blogger.com,1999:blog-2617241286420044465.post-88329723814975988742009-08-13T15:46:36.415+05:302009-08-13T15:46:36.415+05:30Thanks for sharing!
Excellent post and much apprec...Thanks for sharing!<br />Excellent post and much appreciated. Saved me a lot of time.<br />TAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-2617241286420044465.post-7741817029417634172009-02-27T18:12:00.000+05:302009-02-27T18:12:00.000+05:30This solution is more appropriate when you want to...This solution is more appropriate when you want to define propertyplaceholderconfigurer in another xml and include that optionally. For example some beans that are used in production but not used in development could be defined and configured there.<BR/><BR/>This post helped me out today and now I actually understand that requirement :)Priithttps://www.blogger.com/profile/02365072474940471196noreply@blogger.comtag:blogger.com,1999:blog-2617241286420044465.post-12890023520587738952008-05-27T21:40:00.000+05:302008-05-27T21:40:00.000+05:30Tell me if i don't understand your question ok?See...Tell me if i don't understand your question ok?<BR/><BR/>See here what i have shown is, using multiple poperty files in one xml config file. <BR/><BR/>I have successfully done this as i shown, declare two files with different prefix and suffix for placeholder.<BR/><BR/>And its working fine for me. I can access both file properties.<BR/><BR/>Yet i have not tried the way of first comment,using 'locations' property for 'PropertyPlaceholderConfigurer'. You can try it if it works...<BR/><BR/>reply if you need something more.Parth Barothttps://www.blogger.com/profile/12842456592664178430noreply@blogger.comtag:blogger.com,1999:blog-2617241286420044465.post-70274532294229235772008-05-27T13:25:00.000+05:302008-05-27T13:25:00.000+05:30When two files are being imported into a single fi...When two files are being imported into a single file, and each of the two tries to read its own Properties file, this is still a problem. Is there any other solution?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-2617241286420044465.post-40309677518396359442008-04-28T20:46:00.000+05:302008-04-28T20:46:00.000+05:30You can very simply add multiple property files wi...You can very simply add multiple property files with a single PropertyPlaceholderConfigurer. Instead of 'location' use 'locations'Anonymousnoreply@blogger.com