Skip to content

Load files in <import resource=... /> only once [SPR-1142] #5845

@spring-projects-issues

Description

@spring-projects-issues

Martin Zeltner opened SPR-1142 and commented

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


Affects: 1.2.1

Attachments:

Issue Links:

67 votes, 52 watchers

Metadata

Metadata

Assignees

No one assigned

    Labels

    has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)status: bulk-closedAn outdated, unresolved issue that's closed in bulk as part of a cleaning processtype: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions