Spring-Boot - CSS Loaded not recognized fonts
<p>I'm experiencing spring boot, CSS and JS are loaded but fonts don't load (icons) I'm using <a href="http://materializecss.com/" rel="nofollow">materialize CSS</a>.</p>

<p>Here is the project structure :</p>

<pre><code>resources
--static
----css
------materialize.min.css
----js
------materialize.min.js
----font
------material-design-icons
--------Material-Design-Icons.woff2, woff etc..
------Roboto
--------Roboto-... .woff, woff2 etc..
----images
</code></pre>

<p>Here is some lines of css loading fonts :</p>

<pre><code>@font-face {
  font-family: "Material-Design-Icons";
  src: url("../font/material-design-icons/Material-Design-Icons.eot?#iefix") format("embedded-opentype"), url("../font/material-design-icons/Material-Design-Icons.woff2") format("woff2"), url("../font/material-design-icons/Material-Design-Icons.woff") format("woff"), url("../font/material-design-icons/Material-Design-Icons.ttf") format("truetype"), url("../font/material-design-icons/Material-Design-Icons.svg#Material-Design-Icons") format("svg");
  font-weight: normal;
  font-style: normal;
}
</code></pre>

<p>Here is the html :</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html xmlns:th="http://www.thymeleaf.org"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8" /&gt;
    &lt;!--
    &lt;link rel="stylesheet" th:href="@{/webjars/bootstrap/3.1.1/css/bootstrap.min.css}"
          href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css"/&gt;
    &lt;link rel="stylesheet" th:href="@{/webjars/bootstrap/3.1.1/css/bootstrap-theme.css}"
          href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.css"/&gt;
    &lt;link rel="stylesheet" th:href="@{/css/main.css}" href="../../static/css/main.css"/&gt;--&gt;
    &lt;link rel="stylesheet" th:href="@{/css/materialize.min.css}" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/css/materialize.min.css" /&gt;
    &lt;script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.97.5/js/materialize.min.js"&gt;&lt;/script&gt;
    &lt;!--&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"/&gt;--&gt;
    &lt;title&gt;Amazon project&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;nav&gt;
    &lt;div class="nav-wrapper"&gt;
        &lt;a href="#!" class="brand-logo"&gt;Logo&lt;/a&gt;
        &lt;ul class="right hide-on-med-and-down"&gt;
            &lt;li&gt;&lt;a href="sass.html"&gt;&lt;i class="material-icons left"&gt;search&lt;/i&gt;Accueil&lt;/a&gt;&lt;/li&gt;
            &lt;li&gt;&lt;a href="badges.html"&gt;&lt;i class="material-icons right"&gt;view_module&lt;/i&gt;Magasin&lt;/a&gt;&lt;/li&gt;
        &lt;/ul&gt;
    &lt;/div&gt;
&lt;/nav&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>Here is html render : (no icon loaded, just writing icon asked)</p>

<p>Logo</p>

<pre><code>search Accueil
view_module Magasin
</code></pre>

<p>I hope I didn't miss something.</p>

<p>pom.xml :</p>

<pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
   &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;

   &lt;groupId&gt;org.springframework&lt;/groupId&gt;
   &lt;artifactId&gt;gs-spring-boot&lt;/artifactId&gt;
   &lt;version&gt;0.1.0&lt;/version&gt;

   &lt;parent&gt;
      &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
      &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
      &lt;version&gt;1.2.7.RELEASE&lt;/version&gt;
      &lt;relativePath/&gt;
   &lt;/parent&gt;

   &lt;dependencies&gt;
      &lt;!-- SPRING BOOT START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
         &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;mysql&lt;/groupId&gt;
         &lt;artifactId&gt;mysql-connector-java&lt;/artifactId&gt;
         &lt;version&gt;5.1.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.webjars&lt;/groupId&gt;
         &lt;artifactId&gt;materializecss&lt;/artifactId&gt;
         &lt;version&gt;0.97.5&lt;/version&gt;
      &lt;/dependency&gt;

      &lt;dependency&gt;
           &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
           &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
           &lt;scope&gt;test&lt;/scope&gt;
       &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
         &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-thymeleaf&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- SPRING BOOT END --&gt;
      &lt;!-- Data access libraries start --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;commons-dbcp&lt;/groupId&gt;
         &lt;artifactId&gt;commons-dbcp&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
         &lt;artifactId&gt;spring-boot-starter-jdbc&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- Data access libraries end --&gt;
      &lt;!-- THYMELEAF START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.thymeleaf&lt;/groupId&gt;
         &lt;artifactId&gt;thymeleaf-spring4&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;nz.net.ultraq.thymeleaf&lt;/groupId&gt;
         &lt;artifactId&gt;thymeleaf-layout-dialect&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;!-- THYMELEAF END --&gt;
      &lt;!-- BOOTSTRAP START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.ars&lt;/groupId&gt;
         &lt;artifactId&gt;bootstrap&lt;/artifactId&gt;
         &lt;version&gt;3.1.1&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- BOOTSTRAP END --&gt;
      &lt;!-- JAVAX START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;javax.validation&lt;/groupId&gt;
         &lt;artifactId&gt;validation-api&lt;/artifactId&gt;
         &lt;version&gt;1.1.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;javax.persistence&lt;/groupId&gt;
         &lt;artifactId&gt;persistence-api&lt;/artifactId&gt;
         &lt;version&gt;1.0.2&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- JAVAX END --&gt;
      &lt;!-- HIBERNATE CORE --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
         &lt;artifactId&gt;hibernate-validator&lt;/artifactId&gt;
         &lt;version&gt;5.2.3.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
         &lt;artifactId&gt;hibernate-entitymanager&lt;/artifactId&gt;
         &lt;version&gt;5.0.7.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
         &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
         &lt;version&gt;5.0.7.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.hibernate.javax.persistence&lt;/groupId&gt;
         &lt;artifactId&gt;hibernate-jpa-2.1-api&lt;/artifactId&gt;
         &lt;version&gt;1.0.0.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.hibernate&lt;/groupId&gt;
         &lt;artifactId&gt;hibernate-core&lt;/artifactId&gt;
         &lt;version&gt;4.0.1.Final&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- HIBERNATE CORE END  --&gt;
      &lt;!-- CSS --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.webjars&lt;/groupId&gt;
         &lt;artifactId&gt;font-awesome&lt;/artifactId&gt;
         &lt;version&gt;4.5.0&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- CSS END --&gt;
      &lt;!-- POSTGRESQL START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
         &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
         &lt;version&gt;9.4.1207&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- POSTGRESQL END --&gt;
      &lt;!-- LOMBOK START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.projectlombok&lt;/groupId&gt;
         &lt;artifactId&gt;lombok&lt;/artifactId&gt;
         &lt;version&gt;1.16.6&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- LOMBOK END --&gt;
      &lt;!-- JSON start --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.json&lt;/groupId&gt;
         &lt;artifactId&gt;json&lt;/artifactId&gt;
         &lt;version&gt;20141113&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- JSON end --&gt;
      &lt;!-- ANGULAR START --&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.webjars&lt;/groupId&gt;
         &lt;artifactId&gt;angularjs&lt;/artifactId&gt;
         &lt;version&gt;1.3.0-beta.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
         &lt;groupId&gt;org.webjars&lt;/groupId&gt;
         &lt;artifactId&gt;angular-ui-router&lt;/artifactId&gt;
         &lt;version&gt;0.2.8&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;!-- ANGULAR END --&gt;
   &lt;/dependencies&gt;

   &lt;properties&gt;
      &lt;java.version&gt;1.8&lt;/java.version&gt;
   &lt;/properties&gt;

   &lt;build&gt;
      &lt;plugins&gt;
         &lt;plugin&gt;
            &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
            &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
         &lt;/plugin&gt;
      &lt;/plugins&gt;
   &lt;/build&gt;
   &lt;profiles&gt;
      &lt;profile&gt;
         &lt;id&gt;springloaded&lt;/id&gt;
         &lt;activation&gt;
            &lt;property&gt;
               &lt;name&gt;springloaded&lt;/name&gt;
            &lt;/property&gt;
         &lt;/activation&gt;
         &lt;dependencies&gt;
            &lt;dependency&gt;
               &lt;groupId&gt;org.springframework&lt;/groupId&gt;
               &lt;artifactId&gt;springloaded&lt;/artifactId&gt;
               &lt;version&gt;${spring.loaded.version}&lt;/version&gt;
            &lt;/dependency&gt;
         &lt;/dependencies&gt;
         &lt;build&gt;
            &lt;plugins&gt;
               &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                     &lt;agent&gt;${settings.localRepository}/org/springframework/springloaded/${spring.loaded.version}/springloaded-${spring.loaded.version}.jar&lt;/agent&gt;
                     &lt;jvmArguments&gt;-noverify&lt;/jvmArguments&gt;
                  &lt;/configuration&gt;
               &lt;/plugin&gt;
            &lt;/plugins&gt;
         &lt;/build&gt;
      &lt;/profile&gt;
   &lt;/profiles&gt;
&lt;/project&gt;
</code></pre>