Skip to content

Instantly share code, notes, and snippets.

@galak-fyyar
Created October 19, 2011 12:15
Show Gist options
  • Save galak-fyyar/1298123 to your computer and use it in GitHub Desktop.
Save galak-fyyar/1298123 to your computer and use it in GitHub Desktop.
Platform dependent settings in Spring
<bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="nullValue" value="null"/>
<property name="ignoreResourceNotFound" value="true"/>
<property name="locations">
<list>
<value>classpath:/application.properties
<value>classpath:/application-#{ systemEnvironment[ 'SUPER_APP_ENV' ] }.properties
</list>
</property>
</bean>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment