开发者

Separate project for only images - need refactoring?

开发者 https://www.devze.com 2023-02-09 01:50 出处:网络
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百科

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

精彩评论

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