spring - Java web application need to refresh to "see" resource files -


i'm working on web based application spring mvc , thymeleaf. have form upload image. decided save images in src/main/resources/static/images/ , works perfect. found issue upload. when save new image , try display in html it's working. when refresh images folder sts , refresh page works fine. can give me advice why happening , there way fix it? know can use java code image content , display resource use thymeleaf's el. display image @{/images/imagename.jpg}

best regards, peter

the thing is, if resources within web app, won't able display , change @ will. when refresh images folder on sts, "redeploys" resources , can see images.

what need put static/images folder outside web app, you'll able upload new image , have displayed on web app


Comments

Popular posts from this blog

php - How to add and update images or image url in Volusion using Volusion API -

javascript - IE9 error '$'is not defined -