Servlet for serving static content

前端 未结 14 1721
天命终不由人
天命终不由人 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:34

    I found great tutorial on the web about some workaround. It is simple and efficient, I used it in several projects with REST urls styles approach:

    http://www.kuligowski.pl/java/rest-style-urls-and-url-mapping-for-static-content-apache-tomcat,5

提交回复
热议问题