Skip to content

Add @ComponentScan annotation [SPR-7194] #11848

Closed
@spring-projects-issues

Description

@spring-projects-issues

Eric Sirianni opened SPR-7194 and commented

It would be useful to have the @ComponentScan from JavaConfig in Spring core to enable programmatic component scanning. The workaround of using AnnotationConfigWebApplicationContext and setting "init-param" of "contextConfigLocation" is OK, but not a great long-term solution.

The referenced thread talks about porting some of the features of JavaConfig that didn't make it into Spring 3.0.

So hopefully the use-case is well appreciated - I'm just filing this bug for tracking purposes.


Affects: 3.0.2

Reference URL: http://forum.springsource.org/showthread.php?t=80761

Issue Links:

13 votes, 9 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)type: enhancementA general enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions