title: Spring Boot custom favicon.ico not showing
body: <p>I know this question has been asked over and over here and there are several solutions. I've tried several of those except the ones that suggests writing you own configuration bean for this. I don't want to do all that just to display a tiny icon it seams overkill. But I can not get it to work. These are the solutions I've tried so far.</p>
  
  <ol>
  <li>just add favicon.ico under static resources and it should work....it doesn't.</li>
  <li>spring.mvc.favicon.enabled=false in application.properties, no favicon showed at all (which I guess is the whole point of that).</li>
  <li>Tried 2 examples of including the favicon as a link in the html pages. Like so:
  <code>
  &lt;link rel="icon" type="image/png" href="favicon.png" /&gt;
  &lt;link rel="icon" type="image/x-icon" href="favicon.ico" /&gt;</code></li>
  </ol>
  
  <p>Neither of those work. </p>
  
  <ol start="3">
  <li>Tried renaming my own favicon to something else and reference it as above. Does not work. </li>
  </ol>
  
  <p>When inspecting the page in the browser I sometimes get no error at all printed out despite no icon showing, or I get an error saying <code>GET http://localhost:8080/myapp/favicon.png 404 ()</code> Where it is refering the type as JSON (which I find strange). </p>
  
  <p>I'm running out of ideas here so if anyone can tell me why this is not working please let me know. Did I perhaps forget one of those magic spring annotations? 
  This is what my main class looks like.</p>
  
  <pre><code>@SpringBootApplication 
  @ComponentScan
  @Configuration
  @EnableWebMvc
  public class JobengineMonitorApplication implements CommandLineRunner {
  
      public static void main(String[] args) {
          SpringApplication.run(JobengineMonitorApplication.class, args);
      }
  
   }
  </code></pre>
  
  <p>I am using thymeleaf as the template engine</p>