I'm using this to set configuration properties. This allows a base configuration (default.properties) overridable by environment (i.e. production.properties) and finally by a developer (local.properties)
I'm trying to find a way to get hold of the final, merged list of properties. I'd like to show the resolved configuration on a dashboard page.Code:<bean id="servletPropertyConfigurer" class="org.springframework.web.context.support.ServletContextPropertyPlaceholderConfigurer"> <property name="contextOverride" value="true" /> <property name="locations"> <list> <value>classpath:/default.properties</value> <value>classpath:/${DEPLOY_ENV}.properties</value> <value>classpath:/local.properties</value> </list> </property> <property name="ignoreResourceNotFound" value="true" /> <property name="ignoreUnresolvablePlaceholders" value="false" /> <property name="searchSystemEnvironment" value="true" /> </bean>
Thanks


Reply With Quote