j.u.Properties and PropertyPlaceholderConfigurer
rahul somasunderam <[email protected]>
| Newsgroups | gmane.comp.java.springframework.user |
|---|---|
| Message-ID | <[email protected]> |
I have this in my applicationContext-xxx.xml file:
{code}
...
<bean id="propertyConfigurer"
class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:mail.properties</value>
</list>
</property>
</bean>
...
{code}
In my mail.properties, I have:
{code}
...
smtp.password=a\!b123
...
{code}
The thing with this is that j.u.Properties reads this file correctly and
gives me the value of smtp.password as a!b123. Spring however gets it as
a\!b123.
I can put the spring friendly value in there, but my problem is that this
file can be modified thru the application using j.u.Properties.
Is there some configuration I can do to PropertyPlaceholderConfigurer to
make it use the j.u.Properties style?
-----
Rahul Somasunderam
--
View this message in context: http://old.nabble.com/j.u.Properties-and-PropertyPlaceholderConfigurer-tp26685595p26685595.html
Sent from the springframework-user mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev