title: Custom .css file doesn't work with Thymeleaf & Spring MVC
body: <p>So, I've spent like last hour trying to solve it, but I just can't get custom .css file to get linked with html files in <a href="https://stackoverflow.com/questions/tagged/spring">Spring</a> 5. I'm using Thymeleaf, <a href="https://stackoverflow.com/questions/tagged/bootstrap">Bootstrap</a> &amp; <a href="https://stackoverflow.com/questions/tagged/jquery">jQuery</a> for frontend works. I'm using Intellij Community Edition.</p>
  
  <p>My files hierarchy looks like this:</p>
  
  <pre><code>java
      project_files
  resources
      static
          css
            main.css
      templates
          main.html
  </code></pre>
  
  <p>I have a line in <code>main.html</code>:</p>
  
  <pre><code>&lt;link rel="stylesheet" type="text/css" th:href="@{/css/main.css}" href="../../css/main.css"/&gt;
  </code></pre>
  
  <p>that should link my styles with the .html file. What can be wrong?</p>