I have webapp project (tomcat + jsp + spring)
I want all images move to different project. It'll give me possible to change images by redeploy only one war.
开发者_JAVA百科The biggest problem which I have is when I'll move images to new project I need change all paths in jsp, css files. Is there any solution without big refactoring? (maybe Filter which mapping all calling /images/* to /ProjectWithImages/images/*? Is performance good for this solution?)
Map a Servlet to /images/*
and from there - get the target file as stream, and copy it to the output stream, setting all necessary headers.
精彩评论