title: Spring Boot Failed to load resource: the server responded with a status of 404
body: <p>I am facing this error:</p>
  
  <p><a href="https://i.stack.imgur.com/ptAam.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ptAam.png" alt="enter image description here"></a></p>
  
  <blockquote>
    <p>Failed to load resource: the server responded with a status of 404</p>
  </blockquote>
  
  <p>Here is how I am loading <strong>css</strong>. Note that I am not using <code>WebMvcConfigurer</code>.</p>
  
  <pre><code>&lt;head&gt;
     &lt;meta charset="utf-8"&gt;
     &lt;meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"&gt;
     &lt;meta http-equiv="x-ua-compatible" content="ie=edge"&gt;
     &lt;title&gt;Material Design Bootstrap&lt;/title&gt;
     &lt;!-- Font Awesome --&gt;
     &lt;link rel="stylesheet" th:href="@{https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css}"&gt;
     &lt;!-- Bootstrap core CSS --&gt;
     &lt;link rel="stylesheet" th:href="@{/css/bootstrap.min.css}"&gt;
     &lt;!-- Material Design Bootstrap --&gt;
     &lt;link rel="stylesheet" th:href="@{/css/mdb.min.css}"&gt;
     &lt;!-- Your custom styles (optional) --&gt;
     &lt;link rel="stylesheet" th:href="@{/css/style.css}"&gt;
  &lt;/head&gt;  
  </code></pre>
  
  <p>And I am loading <strong>js</strong> files at the end of the page (body).</p>
  
  <pre><code>   &lt;body&gt;
  
      ......      
  
      &lt;!-- SCRIPTS --&gt;
      &lt;!-- JQuery --&gt;
      &lt;script type="text/javascript" src="/static/js/jquery-3.1.1.min.js" th:src="@{/js/jquery-3.1.1.min.js}"&gt;&lt;/script&gt;
      &lt;!-- Bootstrap tooltips --&gt;
      &lt;script type="text/javascript" src="/static/js/popper.min.js" th:src="@{/js/popper.min.js}"&gt;&lt;/script&gt;
      &lt;!-- Bootstrap core JavaScript --&gt;
      &lt;script type="text/javascript" src="/static/js/bootstrap.min.js" th:src="@{/js/bootstrap.min.js}"&gt;&lt;/script&gt;
      &lt;!-- MDB core JavaScript --&gt;
      &lt;script type="text/javascript" src="/static/js/mdb.min.js" th:src="@{/js/mdb.min.js}"&gt;&lt;/script&gt;
   &lt;/body&gt;
  </code></pre>
  
  <p>What could be the reason?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Here is my directory structure</p>
  
  <p><a href="https://i.stack.imgur.com/1o6Ck.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1o6Ck.png" alt="enter image description here"></a></p>