title: What's the difference between static and templates folder under resources in a springboot & thymeleaf project?
body: <p>I'm new to thymeleaf and springboot.</p>
  
  <p>I create a springboot project with thymeleaf in IntelliJ IDEA with "New Project"->"Spring Initalizr".</p>
  
  <p>Then I get a project whose structure looks like below.</p>
  
  <pre><code>demo
    |+-src/main
    |    +-java
    |    +-resources
    |         static
    |         templates
    |         application.properties
    |-pom.xml
  </code></pre>
  
  <p>The question is what should I put in static and templates under resources? What's the difference between them? </p>
  
  <p>I guess the .html files that have thymeleaf attributes should be put in templates. How about static html, css and js?</p>
  
  <p>Thanks.</p>