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

Load files in <import resource=.../> only once

    Details

    • Last commented by a User:
      true

      Description

      Example:

      file1.xml:
      <beans>
      <import resource="classpath:common/common-config.xml"/>
      ...
      </beans>

      file2.xml:
      <beans>
      <import resource="classpath:common/common-config.xml"/>
      ...
      </beans>

      If I load now an application context which has "file1.xml" and "file2.xml" as config locations, the file "common-config.xml" will be loaded twice. I suggest to remember the url of already loaded config files.

      Thanks,
      Martin

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                juergen.hoeller Juergen Hoeller
                Reporter:
                swisswheel Martin Zeltner
                Last updater:
                Lucian Yao
              • Votes:
                67 Vote for this issue
                Watchers:
                53 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Days since last comment:
                  2 years, 45 weeks, 6 days ago