title: spring boot do not publish correctly font files from static dir (font-awesome)
body: <p>I cannot manage to make spring boot publish correctly the font files.</p>
  <p>Since I migrate to spring boot, font-awesome didn't display the icons correctly, instead I got a square.</p>
  <p>In this case my files are local, the urls are good because I can see them loaded in network tab of the chrome console.</p>
  <p>If I change the css loading in the header by using the maxcdn link :</p>
  <pre><code>&lt;link rel=&quot;stylesheet&quot; href=&quot;//maxcdn.bootstrapcdn.com/font-   awesome/4.3.0/css/font-awesome.min.css&quot;&gt;
  </code></pre>
  <p>then it works. The problem is that I got other woff to load that are not in maxcdn (simple-line-icons plugin).</p>
  <p>I put all my static files in src/main/resources/static</p>
  <p>Here is a picture of what I get in chrome (square icons + network info) (open the image link in a new tab to see in large size)</p>
  <p><img src="https://i.stack.imgur.com/6B2KP.png" alt="enter image description here" /></p>
  <p>Apparently chrome says that the font awesome woff file is transfered with mime text/plain</p>
  <p>Here is a pic with content of font awesome fonts dir. original font size (on top) and the same dir filtered with maven (on bottom) size are slightly different</p>
  <p><img src="https://i.stack.imgur.com/jfd4M.png" alt="enter image description here" /></p>
  <p>Here is my pom part were I do maven filtering :</p>
  <pre><code>&lt;build&gt;
      &lt;resources&gt;
          &lt;resource&gt;
              &lt;directory&gt;src/main/resources&lt;/directory&gt;
              &lt;filtering&gt;true&lt;/filtering&gt;
          &lt;/resource&gt;
      &lt;/resources&gt;
      &lt;filters&gt;
          &lt;filter&gt;src/main/filters/${env}.properties&lt;/filter&gt;
      &lt;/filters&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
          &lt;/plugin&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;dev&lt;/id&gt;
          &lt;activation&gt;
              &lt;file&gt;
                  &lt;exists&gt;dev&lt;/exists&gt;
              &lt;/file&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;filters&gt;
                  &lt;filter&gt;${basedir}/src/main/filters/dev.properties&lt;/filter&gt;
              &lt;/filters&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;webdev1&lt;/id&gt;
          &lt;activation&gt;
              &lt;file&gt;
                  &lt;exists&gt;webdev1&lt;/exists&gt;
              &lt;/file&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;filters&gt;
                  &lt;filter&gt;${basedir}/src/main/filters/webdev1.properties&lt;/filter&gt;
              &lt;/filters&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
      &lt;profile&gt;
          &lt;id&gt;prod&lt;/id&gt;
          &lt;activation&gt;
              &lt;file&gt;
                  &lt;exists&gt;prod&lt;/exists&gt;
              &lt;/file&gt;
          &lt;/activation&gt;
          &lt;build&gt;
              &lt;filters&gt;
                  &lt;filter&gt;${basedir}/src/main/filters/prod.properties&lt;/filter&gt;
              &lt;/filters&gt;
          &lt;/build&gt;
      &lt;/profile&gt;
  &lt;/profiles&gt;
  </code></pre>
  <hr />
  <h3>Solved</h3>
  <p>The problem was due to maven filtering resources, I've updated my pom.xml to exclude the static dir</p>