Skip to content

Instantly share code, notes, and snippets.

@calvincodes
Created June 27, 2017 05:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvincodes/26f7c72e334060cf8d2d8356aebc296a to your computer and use it in GitHub Desktop.
Save calvincodes/26f7c72e334060cf8d2d8356aebc296a to your computer and use it in GitHub Desktop.
<bean id=“configurer1" class=“org.springframework.beans.factory.config.PropertyPlaceholderConfigurer”>
<property name="location" value="file:${catalina.base}/conf/config1.properties"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
<bean id="customConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="file:${catalina.base}/conf/config2.properties"/>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="valueSeparator" value="-defVal-"/>
</bean>
<bean id="attachmentClient" class="com.aj.commons.client.attachmentClient">
<property name="declaredProp" value="${declaredPropVal-defVal-defaultValue1}"/>
<property name="undeclaredProp" value="${undeclaredPropVal-defVal-defaultValue2}"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment