From e72b821a73b23be8bc2b33c323dcd3b0bdc11b85 Mon Sep 17 00:00:00 2001 From: Brian Clozel Date: Thu, 25 Jun 2015 15:40:15 +0200 Subject: [PATCH] Mention WebJarsResourceResolver in ref doc Issue: SPR-12323 --- src/asciidoc/web-mvc.adoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/asciidoc/web-mvc.adoc b/src/asciidoc/web-mvc.adoc index 6f38f56069..9d186bc671 100644 --- a/src/asciidoc/web-mvc.adoc +++ b/src/asciidoc/web-mvc.adoc @@ -5026,7 +5026,12 @@ the response `encodeURL` method. Alternatively, an application can also inject a use directly the `ResourceUrlProvider` bean, which is automatically declared with the MVC Java config and the MVC namespace. - +Webjars are also supported with `WebJarsResourceResolver`, which is automatically registered +when the ``"org.webjars:webjars-locator"` library is on classpath. This resolver allows +the resource chain to resolve version agnostic libraries from HTTP GET requests +`"GET /jquery/jquery.min.js" will return resource "/jquery/1.2.0/jquery.min.js"`. +It also works by rewriting resource URLs in templates +`