parent
22b41c33ba
commit
871f705bca
|
@ -313,8 +313,7 @@ class ConfigurationClassParser {
|
||||||
ComponentScan.class, ComponentScans.class, MergedAnnotation::isMetaPresent);
|
ComponentScan.class, ComponentScans.class, MergedAnnotation::isMetaPresent);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!componentScans.isEmpty() &&
|
if (!componentScans.isEmpty()) {
|
||||||
!this.conditionEvaluator.shouldSkip(sourceClass.getMetadata(), ConfigurationPhase.REGISTER_BEAN)) {
|
|
||||||
for (AnnotationAttributes componentScan : componentScans) {
|
for (AnnotationAttributes componentScan : componentScans) {
|
||||||
// The config class is annotated with @ComponentScan -> perform the scan immediately
|
// The config class is annotated with @ComponentScan -> perform the scan immediately
|
||||||
Set<BeanDefinitionHolder> scannedBeanDefinitions =
|
Set<BeanDefinitionHolder> scannedBeanDefinitions =
|
||||||
|
|
Loading…
Reference in New Issue