Skip to content

Add @ComponentScan annotation [SPR-7194] #11848

Closed

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

Activity

  1. spring-projects-issues commented on May 12, 2010

    @spring-projects-issues
    CollaboratorAuthor

    Baruch Sadogursky commented

    There are other features of JavaConfig project missing as well - @AspectJAutoProxy, @AnnotationDrivenTx. It would be nice to have them back too.

  2. spring-projects-issues commented on Jan 10, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    This work is underway and should be merged into trunk shortly. See #12078 for an overarching issue that tracks other such changes e.g., annotation support for AspectJ auto-proxying, etc.

  3. spring-projects-issues commented on Mar 10, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    A @ComponentScan annotation was added in Spring 3.1 M1 as a declarative alternative to the new ComponentScanSpec implementation of FeatureSpecification. See Javadoc for usage instructions.

  4. added
    type: enhancement
    in: core
    has: votes-jira
    on Jan 11, 2019
  5. added this to the 3.1 M1 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    has: votes-jirain: coretype: enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions