开发者

Separate project for only images - need refactoring?

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜