You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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.
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.
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.
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
Activity
spring-projects-issues commentedon May 12, 2010
Baruch Sadogursky commented
There are other features of JavaConfig project missing as well -
@AspectJAutoProxy,@AnnotationDrivenTx. It would be nice to have them back too.spring-projects-issues commentedon Jan 10, 2011
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.
spring-projects-issues commentedon Mar 10, 2011
Chris Beams commented
A
@ComponentScanannotation was added in Spring 3.1 M1 as a declarative alternative to the newComponentScanSpecimplementation ofFeatureSpecification. See Javadoc for usage instructions.