mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Use bean class loader when importing auto-configuration
Fixes gh-26234
This commit is contained in:
parent
1d88e8fa65
commit
4a990f3ed2
@ -94,7 +94,7 @@ class ImportAutoConfigurationImportSelector extends AutoConfigurationImportSelec
|
||||
}
|
||||
|
||||
protected Collection<String> loadFactoryNames(Class<?> source) {
|
||||
return SpringFactoriesLoader.loadFactoryNames(source, getClass().getClassLoader());
|
||||
return SpringFactoriesLoader.loadFactoryNames(source, getBeanClassLoader());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user