title: Serving static content alongside thymeleaf templates with Spring Boot
body: <p>I'm having trouble sonfiguring Spring Boot to use thymeleaf and still serve static content. I have two directories in my resources dir: "/static" and "/templates". According to the Spring Boot documentation, thymeleaf should find thymeleaf templates in the templates directory by default. I am getting a 404 though when I try to use a template.</p>
  
  <p>Relevant code from my Controller:</p>
  
  <pre><code>@RequestMapping("/")
  public ModelAndView index() {
      return new ModelAndView("index.html");
  }
  
  @RequestMapping(value = "/test")
  public ModelAndView test() {
      return new ModelAndView("test");
  }
  </code></pre>
  
  <p>index.html is in resources/static and test.html is in resources/templates.</p>
  
  <p>index.html works fine, but if you try to open /test in your browser, it throws a 404 saying that the thymeleaf template could not be found.</p>
  
  <p>I really appreciate any help. I'm stumped.</p>