<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spring PropertyPlaceholderConfigurer: A nice clean way to share</title>
	<atom:link href="http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/feed" rel="self" type="application/rss+xml" />
	<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share</link>
	<description>blogging about life, the universe, and everything tech</description>
	<lastBuildDate>Sat, 08 Sep 2012 07:06:53 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: lwpro2</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-48241</link>
		<dc:creator>lwpro2</dc:creator>
		<pubDate>Mon, 13 Jun 2011 06:04:56 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-48241</guid>
		<description>is that compulsory to put the propertyplaceholderconfigurer there, if I want to use the passed in properties file?</description>
		<content:encoded><![CDATA[<p>is that compulsory to put the propertyplaceholderconfigurer there, if I want to use the passed in properties file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ignatius</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-45889</link>
		<dc:creator>ignatius</dc:creator>
		<pubDate>Fri, 11 Dec 2009 12:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-45889</guid>
		<description>Define a properties file like this:

environment=development

development.jdbc.url=localhost....
production.jdbc.url=server.com
test.jdbc.url=otherserver

jdbc.url=${${enviroment}.jdbc.url}

and to use it in the xml:   ${jdbc.url} and to change the enviroment, just change &quot;enviroment&quot; to test or production</description>
		<content:encoded><![CDATA[<p>Define a properties file like this:</p>
<p>environment=development</p>
<p>development.jdbc.url=localhost&#8230;.<br />
production.jdbc.url=server.com<br />
test.jdbc.url=otherserver</p>
<p>jdbc.url=${${enviroment}.jdbc.url}</p>
<p>and to use it in the xml:   ${jdbc.url} and to change the enviroment, just change &#8220;enviroment&#8221; to test or production</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-42503</link>
		<dc:creator>Leon</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:48:51 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-42503</guid>
		<description>Added the xml markers yourself

bean id=&quot;propertyConfigurer&quot;
class=&quot;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&quot;
 property name=&quot;location&quot; value=&quot;file:${catalina.home}\conf\config.properties&quot;/ 
	 /bean</description>
		<content:encoded><![CDATA[<p>Added the xml markers yourself</p>
<p>bean id=&#8221;propertyConfigurer&#8221;<br />
class=&#8221;org.springframework.beans.factory.config.PropertyPlaceholderConfigurer&#8221;<br />
 property name=&#8221;location&#8221; value=&#8221;file:${catalina.home}\conf\config.properties&#8221;/<br />
	 /bean</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Leon</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-42502</link>
		<dc:creator>Leon</dc:creator>
		<pubDate>Wed, 07 Oct 2009 19:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-42502</guid>
		<description>Looks like everybody is looking for this:
instead of catalina.home you can enter any variable which is loaded at startup. ( -D xxx)



		
	</description>
		<content:encoded><![CDATA[<p>Looks like everybody is looking for this:<br />
instead of catalina.home you can enter any variable which is loaded at startup. ( -D xxx)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Moaad</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-42460</link>
		<dc:creator>Moaad</dc:creator>
		<pubDate>Thu, 01 Oct 2009 09:21:17 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-42460</guid>
		<description>There&#039;s a way to use a a properties file on the file system with a relative path ?
something like : file:///./module/config.properties ?
thanks in advance</description>
		<content:encoded><![CDATA[<p>There&#8217;s a way to use a a properties file on the file system with a relative path ?<br />
something like : file:///./module/config.properties ?<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dibya</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-42355</link>
		<dc:creator>Dibya</dc:creator>
		<pubDate>Thu, 10 Sep 2009 09:07:25 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-42355</guid>
		<description>Thanks Pavel .</description>
		<content:encoded><![CDATA[<p>Thanks Pavel .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishan</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-42143</link>
		<dc:creator>Krishan</dc:creator>
		<pubDate>Sun, 23 Aug 2009 08:11:02 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-42143</guid>
		<description>Is there a way using PropertyPlaceholderConfigurer to define Env dependetnt properties file, e.g Lets say we have three files 1) dev_db.properties 2) test_db.propertie 3) prod_db.properties.

Then we can set the property file in or application depending upon the env in which application is deployed.</description>
		<content:encoded><![CDATA[<p>Is there a way using PropertyPlaceholderConfigurer to define Env dependetnt properties file, e.g Lets say we have three files 1) dev_db.properties 2) test_db.propertie 3) prod_db.properties.</p>
<p>Then we can set the property file in or application depending upon the env in which application is deployed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sai</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-40790</link>
		<dc:creator>sai</dc:creator>
		<pubDate>Wed, 29 Apr 2009 16:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-40790</guid>
		<description>Thanks, man. Very helpful. You saved the day</description>
		<content:encoded><![CDATA[<p>Thanks, man. Very helpful. You saved the day</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bwestendorf</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-40451</link>
		<dc:creator>bwestendorf</dc:creator>
		<pubDate>Fri, 27 Feb 2009 21:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-40451</guid>
		<description>I am getting the property name instead of value:

Account Info: ${sample.accountNumber}

Any ideas what I am missing?  Where in the project does the prop file go?


               
			classpath:sample.properties
		



      	


thanks, brian</description>
		<content:encoded><![CDATA[<p>I am getting the property name instead of value:</p>
<p>Account Info: ${sample.accountNumber}</p>
<p>Any ideas what I am missing?  Where in the project does the prop file go?</p>
<p>			classpath:sample.properties</p>
<p>thanks, brian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sudhir</title>
		<link>http://almaer.com/blog/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share/comment-page-1#comment-40275</link>
		<dc:creator>sudhir</dc:creator>
		<pubDate>Wed, 21 Jan 2009 07:16:37 +0000</pubDate>
		<guid isPermaLink="false">http://almaer.com/blog2/spring-propertyplaceholderconfigurer-a-nice-clean-way-to-share#comment-40275</guid>
		<description>Thanks for the post.. It helped..</description>
		<content:encoded><![CDATA[<p>Thanks for the post.. It helped..</p>
]]></content:encoded>
	</item>
</channel>
</rss>
