25 ++ servlet-mapping url-pattern multiple 183966-Spring servlet mapping multiple url pattern
This is true, but only in Servlet Spec 25 and up Look at SRVS19 (Changes from Servlet 24) SRV1903 Multiple Occurrences of Servlet Mappings Previous versions of the servlet schema allows only a single urlpattern or servletA filtermapping maps a filter to a URL pattern Therefore, each filtermapping contains a single urlpattern element Notice that the urlpattern for a filter need not exactly match the urlpattern in any particular servletmapping For example, the webxml fragment below maps the URL /status/compressed/* to a filter named compressResponseURL rewriting URL rewriting is a way of appending data at the end of URL Data is appended in name value pair form Multiple parameters can be appended in one URL with name value pairs Chapter 9 Servlet Writing Filters Spring servlet mapping multiple url pattern
コメント
コメントを投稿