title: Showing uploaded image with Spring boot
body: <p>I'm having a huge problem showing an image uploaded in Spring Boot, problem is that the first time I upload it, the path is perfectly fine and everything is good but image not displaying, when i restart the server the image shows. </p>
  
  <p>I think it's because when starting the project it compiles into a .jar without the image, so before restarting the project the image don't really exists.</p>
  
  <p>I dont know how to fix this, not sure if possible.</p>
  
  <p>The image is saved under static/img</p>
  
  <p><a href="https://i.stack.imgur.com/3KFtr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3KFtr.png" alt="enter image description here"></a></p>
  
  <p>Thank you alot</p>