I've got several debug flags (properties) that I've consolidated into one properties file. I'd like to use the PropertyPlaceholderConfigurer to replace these properties regardless of which *Context.xml or *-servlet.xml file in which they exist.
If I declare the bean
in the applicationContext.xml, app-servlet.xml doesn't know how to replace the placeholders. However, if I declare the same PropertyPlaceholderConfigurer bean in app-servlet.xml, it works fine.Code:<bean id="propertyOverrideConfigurer" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer" lazy-init="false"> <property name="location"> <value>WEB-INF/placeholder.properties</value> </property> <property name="order"><value>1</value></property> </bean>
I know I'm missing something dumb. Any help would be much appreciated.
- Justin


Reply With Quote