|
|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2018 the original author or authors. |
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -372,8 +372,9 @@ public class PathMatchingResourcePatternResolver implements ResourcePatternResol |
|
|
|
try { |
|
|
|
try { |
|
|
|
for (URL url : ((URLClassLoader) classLoader).getURLs()) { |
|
|
|
for (URL url : ((URLClassLoader) classLoader).getURLs()) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
UrlResource jarResource = new UrlResource( |
|
|
|
UrlResource jarResource = (ResourceUtils.URL_PROTOCOL_JAR.equals(url.getProtocol()) ? |
|
|
|
ResourceUtils.JAR_URL_PREFIX + url + ResourceUtils.JAR_URL_SEPARATOR); |
|
|
|
new UrlResource(url) : |
|
|
|
|
|
|
|
new UrlResource(ResourceUtils.JAR_URL_PREFIX + url + ResourceUtils.JAR_URL_SEPARATOR)); |
|
|
|
if (jarResource.exists()) { |
|
|
|
if (jarResource.exists()) { |
|
|
|
result.add(jarResource); |
|
|
|
result.add(jarResource); |
|
|
|
} |
|
|
|
} |
|
|
|
|