|
|
@ -179,8 +179,10 @@ public class PathResourceResolver extends AbstractResourceResolver { |
|
|
|
resourcePath = resource.getURL().getPath(); |
|
|
|
resourcePath = resource.getURL().getPath(); |
|
|
|
locationPath = StringUtils.cleanPath(location.getURL().getPath()); |
|
|
|
locationPath = StringUtils.cleanPath(location.getURL().getPath()); |
|
|
|
} |
|
|
|
} |
|
|
|
locationPath = (StringUtils.getFilenameExtension(locationPath) != null |
|
|
|
if(locationPath.equals(resourcePath)) { |
|
|
|
|| locationPath.endsWith("/") || locationPath.isEmpty() ? locationPath : locationPath + "/"); |
|
|
|
return true; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
locationPath = (locationPath.endsWith("/") || locationPath.isEmpty() ? locationPath : locationPath + "/"); |
|
|
|
if (!resourcePath.startsWith(locationPath)) { |
|
|
|
if (!resourcePath.startsWith(locationPath)) { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|