Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-4902

Allow locations value in PropertyPlaceholderConfigurer be resolved

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 3.1 GA
    • Component/s: Core
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      When configuring PropertyPlaceholderConfigurer bean, the "locations" value can use property resolvable variable, but only if it defined in System properties ONLY. If not defined, it errors out. It would be very useful to have it also lookup an defined Map in another bean within the context that provide default values.

      I notice that we can do this on other bean definitions after a PropertyPlaceholderConfigurer has been setup, but the "locations" properties of PropertyPlaceholderConfigurer bean itself is not configurable, which is a shame.

      Can we add this improvement?

      Thanks.

      There is a also a forum topic created, but no one replied
      http://forum.springframework.org/showthread.php?p=185477

        Attachments

          Activity

            People

            • Assignee:
              cbeams Chris Beams
              Reporter:
              thebugslayer Zemian Deng
              Last updater:
              Trevor Marshall
            • Votes:
              10 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                6 years, 24 weeks, 4 days ago