Spring : Reading Properties file
Spring 2.5 : Reading Properties file: PropertyPlaceholderConfigurer : The PropertyPlaceholderConfigurer is used to externalize property values from a BeanFactory definition, into another separate file in the standard Java Properties format. This is useful to allow the person deploying an application to customize environment-specific properties (for example database URLs, usernames and passwords), without the complexity or risk of modifying the main XML definition file or files for the container. <bean class = "org.springframework. beans.factory.config. PropertyPlaceholderConfigurer" > <property name = "location" > <value>database.properties</ value> </property> </bean> Getting Property Value in Spring Configuration: Use ${propertyKey} <bean id="dataSource" class="org.springframework. jdbc.data...