|
|
|
@ -5162,9 +5162,9 @@ use directly the `ResourceUrlProvider` bean, which is automatically declared wit |
|
|
|
|
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 |
|
|
|
|
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"`. |
|
|
|
|
`"GET /jquery/jquery.min.js"` will return resource `"/jquery/1.2.0/jquery.min.js"`. |
|
|
|
|
It also works by rewriting resource URLs in templates |
|
|
|
|
`<script src="/jquery/jquery.min.js"/> -> <script src="/jquery/1.2.0/jquery.min.js"/>`. |
|
|
|
|
|
|
|
|
|