title: Spring boot webjars: unable to load javascript library through webjar
body: <p>I have a spring boot (I use Thymeleaf for templating) project where I want to use some jQuery libraries.</p>
  
  <p>Unfortunately, the webjars aren't loading at all. I have tried many configuration but all of them failed.</p>
  
  <p>Here is the code snippet of my HTML page:</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns:th="http://www.thymeleaf.org"&gt;
  &lt;head lang="en"&gt;
  
  &lt;title&gt;JAC&lt;/title&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/&gt;
  
  &lt;script src="http://cdn.jsdelivr.net/webjars/jquery/2.1.4/jquery.js"
          th:src="@{/webjars/jquery/2.1.4/jquery.min.js}" type="text/javascript"&gt;&lt;/script&gt;
  &lt;script src="http://cdn.jsdelivr.net/webjars/jquery-file-upload/9.10.1/jquery.fileupload.js"  type="text/javascript"
          th:src="@{/webjars/jquery-file-upload/9.10.1/jquery.fileupload.min.js}"&gt;&lt;/script&gt;
  &lt;link href="http://cdn.jsdelivr.net/webjars/bootstrap/3.3.5/css/bootstrap.min.css"
        th:href="@{/webjars/bootstrap/3.3.5/css/bootstrap.min.css}"
        rel="stylesheet" media="screen" /&gt;
  &lt;link href="http://cdn.jsdelivr.net/webjars/jquery-file-upload/9.10.1/jquery.fileupload.css"
        rel="stylesheet" media="screen" /&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>I have added them in the pom file:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.webjars.npm&lt;/groupId&gt;
      &lt;artifactId&gt;jquery&lt;/artifactId&gt;
      &lt;version&gt;2.1.4&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;org.webjars&lt;/groupId&gt;
      &lt;artifactId&gt;bootstrap&lt;/artifactId&gt;
      &lt;version&gt;3.3.5&lt;/version&gt;
  &lt;/dependency&gt;
  
  &lt;dependency&gt;
      &lt;groupId&gt;org.webjars&lt;/groupId&gt;
      &lt;artifactId&gt;jquery-file-upload&lt;/artifactId&gt;
      &lt;version&gt;9.10.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>But when calling the page I got a 404 on jquery.min.js and jquery.fileupload.min.js.</p>
  
  <pre><code>GET http://localhost:8888/webjars/jquery-file-upload/9.10.1/jquery.fileupload.min.js 
  2015-09-21 02:02:04.059 home:9 
  GET http://localhost:8888/webjars/jquery/2.1.4/jquery.min.js 404 (Not Found)
  </code></pre>