Skip to content

Commit 4a990f3

Browse files
committed
Use bean class loader when importing auto-configuration
Fixes gh-26234
1 parent 1d88e8f commit 4a990f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-project/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/ImportAutoConfigurationImportSelector.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ private Collection<String> getConfigurationsForAnnotation(Class<?> source, Annot
9494
}
9595

9696
protected Collection<String> loadFactoryNames(Class<?> source) {
97-
return SpringFactoriesLoader.loadFactoryNames(source, getClass().getClassLoader());
97+
return SpringFactoriesLoader.loadFactoryNames(source, getBeanClassLoader());
9898
}
9999

100100
@Override

0 commit comments

Comments
 (0)