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

automatic registration of PSPC when @PropertySource is used

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      Can we please register a PropertySourcesPlaceholderConfigurer when @PropertySource is used so that everything just "works" in @Configuration classes? I realize that I could also do a @Bean public static PropertySourcesPlaceholderConfigurer pspc(){ }, but it is surprising that it doesn't work by default. It's one more place for users to stub their toes when I can't think of any reason not to support it. Thanks for your consideration.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cbeams Chris Beams
                Reporter:
                joshlong Josh Long
                Last updater:
                Sam Brannen
              • Votes:
                1 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 8 weeks, 4 days ago