Skip to content

Commit

Permalink
Use ClassLoader from ResourceLoader to load PropertySourceLoaders
Browse files Browse the repository at this point in the history
Fixes gh-44427
  • Loading branch information
wilkinsona committed Feb 26, 2025
1 parent 56c9551 commit 5be5eaf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2012-2024 the original author or authors.
* Copyright 2012-2025 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -89,7 +89,7 @@ public StandardConfigDataLocationResolver(DeferredLogFactory logFactory, Binder
ResourceLoader resourceLoader) {
this.logger = logFactory.getLog(StandardConfigDataLocationResolver.class);
this.propertySourceLoaders = SpringFactoriesLoader.loadFactories(PropertySourceLoader.class,
getClass().getClassLoader());
resourceLoader.getClassLoader());
this.configNames = getConfigNames(binder);
this.resourceLoader = new LocationResourceLoader(resourceLoader);
}
Expand Down

0 comments on commit 5be5eaf

Please sign in to comment.