Skip to content

Commit aa9d0bc

Browse files
committed
Merge pull request #26149 from vsriram92
* gh-26194: Polish "Use ConfigDataLocationResolvers' class loader to load resolver names" Use ConfigDataLocationResolvers' class loader to load resolver names Closes gh-26149
2 parents d3ca939 + 0c30a59 commit aa9d0bc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/config/ConfigDataLocationResolvers.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ class ConfigDataLocationResolvers {
5353
*/
5454
ConfigDataLocationResolvers(DeferredLogFactory logFactory, ConfigurableBootstrapContext bootstrapContext,
5555
Binder binder, ResourceLoader resourceLoader) {
56-
this(logFactory, bootstrapContext, binder, resourceLoader,
57-
SpringFactoriesLoader.loadFactoryNames(ConfigDataLocationResolver.class, null));
56+
this(logFactory, bootstrapContext, binder, resourceLoader, SpringFactoriesLoader
57+
.loadFactoryNames(ConfigDataLocationResolver.class, ConfigDataLocationResolver.class.getClassLoader()));
5858
}
5959

6060
/**

0 commit comments

Comments
 (0)