Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document that @Conditional on @Configuration affects component scanning [SPR-11579] #16203

Closed
spring-projects-issues opened this issue Mar 19, 2014 · 0 comments
Assignees
Labels
type: documentation A documentation task
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

Rob P opened SPR-11579 and commented

Documentation for @Conditional says:

"If a @Configuration class is marked with @Conditional, all of the @Bean methods and @Import annotations associated with that class will be subject to the conditions."

My own experiments suggest that @ComponentScan is also subject to the conditions on the configuration bean. It would be helpful to document this as the only way I could be sure was to try it.


Affects: 4.0.2

Referenced from: commits 3aff973

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: documentation A documentation task
Projects
None yet
Development

No branches or pull requests

2 participants