Skip to content

Instantly share code, notes, and snippets.

@banterCZ
Created May 21, 2012 22:30
Show Gist options
  • Save banterCZ/2765108 to your computer and use it in GitHub Desktop.
Save banterCZ/2765108 to your computer and use it in GitHub Desktop.
How to extract configuration from a war file.
<context:property-placeholder location="${myApp.config.location:classpath}myApp.properties" system-properties-mode="OVERRIDE"/>
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="location" value="${myApp.config.location:classpath}myApp.properties" />
<property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE"/>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment