Wrap the default servlet but override the default webapp path

后端 未结 6 1931
故里飘歌
故里飘歌 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:38

    You can override DefaultServlet with your own implementation. You can perfectly subclass it, it's a public class. Here are the functional specifications of the DefaultServlet, you need to adhere it.

    On the other hand you can ignore DefaultServlet and go for your own solution, an example can be found here.

提交回复
热议问题