title: How to remove/disable Spring boot logo on web browser completely?
body: <p>I am trying to remove the spring boot leaf logo on the web browser completely. Attached image for reference: </p>
  
  <p><a href="https://i.stack.imgur.com/2pWaP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2pWaP.png" alt="Sample Icon"></a></p>
  
  <p><strong>Attempt 1:</strong></p>
  
  <p>Added these two in application.properties file</p>
  
  <pre><code>spring.mvc.favicon.enabled=false
  spring.favicon.enabled=false
  </code></pre>
  
  <p>This only worked in the when hitting pages but if I open localhost:8080/env the Spring logo appears again.</p>
  
  <p><strong>Attempt 2:</strong> I tried to override the logo with static image. In the index.html.</p>
  
  <pre><code>&lt;link rel="icon" type="image/x-icon" href="assets/images/Logo.jpg"&gt;
  </code></pre>
  
  <p>Same issue only works on static pages but when opening localhost:8080/env the Spring logo appears again.</p>
  
  <p><strong>Attempt 3:</strong> </p>
  
  <pre><code>Project
  ├── src.main.java.resources
  │   ├── static
  │   │   ├── favicon.ico
  </code></pre>
  
  <p>"favicon.ico" in resources --> static folder. 
  Not sure if my browsers are cached but it does not seem to pick up the favicon by default as mentioned in the wiki.</p>
  
  <p>PS, I am using java and spring boot for backend and angular for the UI</p>
  
  <p>Is there a configuration where I can override or completely remove/disable this spring leaf image for every single page?</p>
  
  <p>I Have also followed steps from references below</p>
  
  <p><a href="https://www.javadevjournal.com/spring-boot/spring-boot-favicon/" rel="nofollow noreferrer">https://www.javadevjournal.com/spring-boot/spring-boot-favicon/</a></p>
  
  <p><a href="https://www.baeldung.com/spring-boot-favicon" rel="nofollow noreferrer">https://www.baeldung.com/spring-boot-favicon</a></p>
  
  <p>But still hitting /env does not hide the spring boot leaf icon.</p>