Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created February 6, 2012 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save eugenp/1752369 to your computer and use it in GitHub Desktop.
Save eugenp/1752369 to your computer and use it in GitHub Desktop.
Properties with Spring - Register Property manually in XML with Spring 3.1
<bean class="org.springframework.context.support.PropertySourcesPlaceholderConfigurer">
<property name="location">
<list>
<value>classpath:foo.properties</value>
</list>
</property>
<property name="ignoreUnresolvablePlaceholders" value="true"/>
</bean>
@folkengine
Copy link

Had to change the name to locations for it to work. Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment