title: Spring Boot war favicon not showing/resolved
body: <p>I have the problem that my favicon is not showing up if I have deployed the war file. In my IDE its working.</p>
  
  <p>I am using Spring Boot and packacking war. The favicon.ico is stored in the folder src/main/resources and also in src/main/resources/static like in the most pages described.
  In the packaged war file I also see the favicon.ico. I have linked it also on the jsp page.</p>
  
  <p>Icon is not showing up. I think the problem is that the tomcat is looking in a different folder. Interesting would also why if I start from the IDE its working and if I start the war its not.</p>
  
  <p><strong>Clipping from jsp file</strong></p>
  
  <pre><code>&lt;link rel="icon" href="favicon.ico" type="image/x-icon" /&gt;
  &lt;link rel="shortcut icon" href="favicon.ico" type="image/x-icon" /&gt;
  </code></pre>
  
  <p><strong>Location of "favicon.ico"</strong>, stored this icon in "src/main/resources" and also in the subfolder static.</p>
  
  <p><a href="https://i.stack.imgur.com/SOajA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SOajA.png" alt="location favicon.ico"></a></p>