Announcement Announcement Module
Collapse
No announcement yet.
How to access defined, merged Properties Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to access defined, merged Properties

    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)

    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>
    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.

    Thanks
Working...
X