title: Spring-Boot ResourceLocations not finding css file in resources/static/css
body: <p>In my Spring Boot project, when I do a maven build, my css stylesheet is not located.  I have already taken advice from the official Spring Boot documentation and other stackoverflow posts, and have put my css file in resources/static/css directory.</p>
  
  <p><img src="https://i.stack.imgur.com/ZZqfo.png" alt="enter image description here"></p>
  
  <pre><code>|_src
     |_main
     |_java
     |_resources
        |_templates
        |_static
           |_css
              |_master.css
  </code></pre>
  
  <p>Declaring the css stylesheet in the thymeleaf layout (html file under templates directory):</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml" xmlns:ipp="" xmlns:th="http://www.thymeleaf.org"&gt;
  &lt;head&gt;
      &lt;link rel="stylesheet" href="../static/css/master.css" th:href="@{/css/master.css}" media="screen"/&gt;
  &lt;/head&gt;
  </code></pre>
  
  <p>My pom.xml includes spring-boot-starter-web and spring-boot-starter-thymeleaf, so it is expected that the Spring-Boot ResourceLocations should map static content to     src/main/resources/static.</p>
  
  <p>I have also attempted:</p>
  
  <pre><code>th:href="@{css/master.css}"
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>th:href="@{static/css/master.css}"
  </code></pre>
  
  <p>AND</p>
  
  <pre><code>th:href="@{../static/css/master.css}"
  </code></pre>
  
  <p>AND complete removal of th:href=...</p>
  
  <p>Any ideas on what is preventing the stylesheet from being located?</p>