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

Add @PropertySources annotation and support ignoreResourceNotFound

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 3.1 M2
    • Fix Version/s: 4.0 RC1
    • Component/s: None
    • Labels:
      None
    • Last commented by a User:
      false

      Description

      As of 3.1 M2, the @PropertySource annotation allows for declarative registration of property sources against the enclosing Environment. However, it does not allow for manipulation of property source ordering. This (if desired at all) must be done against the ConfigurableEnvironment#getPropertySources() MutablePropertySources API.

      This issue exists to gauge interest in this feature (read: collect votes). Please be specific about use cases in order to assess whether such an enhancement truly represents a general need.

      If interest is sufficient, we'll consider this for 3.1 RC1.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pwebb Phil Webb
                Reporter:
                cbeams Chris Beams
                Last updater:
                Juergen Hoeller
              • Votes:
                12 Vote for this issue
                Watchers:
                17 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  4 years, 27 weeks, 1 day ago