title: Spring-Boot doesn't load resource folder, using Thymeleaf
body: <p>I've been trying to get this working but no luck after several hours.</p>
  
  <p>My structure is like this:</p>
  
  <pre><code> src
  └───  main
      ├───  java
      └───  resources
          ├───  META-INF
          │   └───  resources
          │       └───  bootstrap
          │           ├───  css
          │           └───  js
          ├───  templates
          │   └─── index.html
          └─── application.properties
  </code></pre>
  
  <p>Here is the WebConfig class:</p>
  
  <pre><code>@Configuration
  @EnableWebMvc
  public class WebAppConfig extends WebMvcConfigurerAdapter {
  
      public void addResourceHandlers(ResourceHandlerRegistry registry) {
          registry.addResourceHandler("/resources/**")
              .addResourceLocations("/resources/");
      }
  
  }
  </code></pre>
  
  <p>If I use link to a web resource, it works:</p>
  
  <pre><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"&gt;&lt;/link&gt;
  </code></pre>
  
  <p>If I'm trying to include a static resource, it doesn't work:</p>
  
  <pre><code>&lt;link type="text/css" rel="stylesheet" href="../../../resources/bootstrap/css/bootstrap.min.css" 
      data-th-href="@{/resources/bootstrap/css/bootstrap.min.css}" /&gt;
  </code></pre>
  
  <p>Any help is highly appreciated.</p>
  
  <p>Thank you</p>