title: How to add static resources in spring with thymeleaf
body: <p>I am new to <strong>Spring</strong> and I am trying to make a beautiful Web Application, and so far I set up everything, and if I run my page on the browser it shows as it is supposed. But if I run it with tomcat on port <em>8080</em> (I am using Intelijj) it doesn't load <strong>css</strong> and <strong>js</strong> files not even pictures.</p>
  
  <p>I have literally searched this problem and open all the StackOverflow similar questions, I tried to write a configuration file, but it doesn't do anything, and I am uncertain about this approach because I have seen examples of people that did not write any configuration, but still they managed to make all their static resources load, and so on. Is it some secret application properties that need to write? Or there is a config code that has to write?  </p>
  
  <p>My resources folder looks like this:</p>
  
  <pre><code>-resources
      -static
          -CSS 
              -things.css
          -JS
              -datepicker.js
          -Images
              -many pictures
      -templates
          -Home.html and other pages
  </code></pre>
  
  <p>And the code that I used to refer to static-CSS-things.css is like this:</p>
  
  <pre><code>link href="../static/CSS/things.css" th:href="@{/CSS/things.css}" rel="stylesheet" media="all" type="text/css"
  </code></pre>
  
  <p>I thought this would make my css file to load, but it doesn't. Same for the js and the pictures. Thank you!</p>