Skip to content

Instantly share code, notes, and snippets.

@huljas
Created May 5, 2011 05:29
Show Gist options
  • Save huljas/956580 to your computer and use it in GitHub Desktop.
Save huljas/956580 to your computer and use it in GitHub Desktop.
Reading properties from a path defined in system property with a default value.
<?xml version="1.0" encoding="UTF-8"?>
<beans>
<bean id="applicationConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpath:app-dev.properties</value>
<value>${app.properties}</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
<property name="ignoreResourceNotFound" value="true"/>
</bean>
</beans>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment