posted 10 years ago
<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 ?