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
"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.
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
The text was updated successfully, but these errors were encountered: