Wrap the default servlet but override the default webapp path

后端 未结 6 1922
故里飘歌
故里飘歌 2020-12-10 20:33

I have a folder of static html,imgs,flash content that lives outside of the webapp folder. Right now I\'m using a symbolic link to map that folder into my webapp directory.

6条回答
  •  北海茫月
    2020-12-10 21:23

    That's not a good idea.

    Web containers or application servers can be deployed behind Web servers or you can simply use a Web server in conjunction with your container. Just put your static files under that and refer to them by absolute path.

    There's really no need for this kind of hack (sorry but that's what it is).

    Either that or simply deploy them with the Web app.

提交回复
热议问题