From 57e0c789a81bb68410bd2ef9e824d81b76b05909 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Tue, 19 May 2015 23:57:30 +0200 Subject: [PATCH] Polish Issue: SPR-12323 --- .../resource/WebJarsResourceResolver.java | 56 ++++++++++++------- .../WebJarsResourceResolverTests.java | 32 +++++++++++ 2 files changed, 67 insertions(+), 21 deletions(-) diff --git a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/WebJarsResourceResolver.java b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/WebJarsResourceResolver.java index 206d3fc271..98c8341930 100644 --- a/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/WebJarsResourceResolver.java +++ b/spring-webmvc/src/main/java/org/springframework/web/servlet/resource/WebJarsResourceResolver.java @@ -29,15 +29,19 @@ import org.springframework.core.io.Resource; * A {@code ResourceResolver} that delegates to the chain to locate a resource * and then attempts to find a matching versioned resource contained in a WebJar JAR file. * - *

This allows WabJar users to use version-less paths in their templates, like {@code "/jquery/jquery.min.js"} - * while this path is resolved to the unique version {@code "/jquery/1.2.0/jquery.min.js"}, which is a better fit - * for HTTP caching and version management in applications. + *

This allows WebJars.org users to write version agnostic paths in their templates, + * like {@code