I'm working on a web based application with Spring MVC and Thymeleaf. I have form which upload image. I decided to save the images in src/main/resources/static/images/
and that works perfect. But I found an issue with upload. When I save new image and try to display it in the HTML it's now working. When i refresh the images
folder from STS and refresh the page it works fine. Can you give me some advice why this is happening and is there a way to fix it? I know i can use java code to get image content and display it as a resource but i would like to use thymeleaf's EL. I display the image with @{/images/imagename.jpg}
Best regards, Peter