We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4bcf92f commit 64e79baCopy full SHA for 64e79ba
spring-webmvc/src/main/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandler.java
@@ -316,7 +316,7 @@ else if (resource instanceof ServletContextResource) {
316
locationPath = location.getURL().getPath();
317
}
318
locationPath = (locationPath.endsWith("/") ||
319
- !StringUtils.hasText(locationPath) ? locationPath : locationPath + "/");
+ !StringUtils.hasLength(locationPath) ? locationPath : locationPath + "/");
320
if (!resourcePath.startsWith(locationPath)) {
321
return false;
322
0 commit comments