aspose file tools*
The moose likes Spring and the fly likes Spring properties value Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Spring properties value " Watch "Spring properties value " New topic
Author

Spring properties value

kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
<bean id="configuredProperties" class="com.sample.SpringPropertiesBean">
<property name="location" value="classpath:/test.properties"/>
</bean>

SpringPropertiesBean extends from org.springframework.beans.factory.config.PropertiesFactoryBean and properties(test.properties) are loaded in this class.


<bean id="sample"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="arguments">
<util:properties>
<prop key="java.security.auth.login.config">###########</prop>
</util:properties>
</property>
</bean>


java.security.auth.login.config key and respective value is defined in the test.properties file. How should i get the java.security.auth.login.config prop value for the bean sample ? Can i use <util:properties> or <props> tag ?
kri shan
Ranch Hand

Joined: Apr 08, 2004
Posts: 1372
Any update ?
Bill Gorder
Bartender

Joined: Mar 07, 2010
Posts: 1648
    
    7

I think this previous post should help you.
http://www.coderanch.com/t/585098/Spring/spring-expressions#2665905


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Spring properties value