Servlet for serving static content

前端 未结 14 1948
天命终不由人
天命终不由人 2020-11-22 06:02

I deploy a webapp on two different containers (Tomcat and Jetty), but their default servlets for serving the static content have a different way of handling the URL structur

14条回答
  •  余生分开走
    2020-11-22 06:21

    try this

    
        default
        *.js
        *.css
        *.ico
        *.png
        *.jpg
        *.htc
        *.gif
        
    

    Edit: This is only valid for the servlet 2.5 spec and up.

提交回复
热议问题