filter能设置例外路径么?就是除了那个路径或文件其他都过滤
<url-pattern>/*</url-pattern>这个能设置例外么?

解决方案 »

  1.   


    In theWeb application deployment descriptor, the following syntax is used to define
    mappings:
    &#8226; A string beginning with a ‘/’ character and ending with a ‘/*’ suffix is used
    for path mapping.
    &#8226; A string beginning with a ‘*.’ prefix is used as an extension mapping.
    &#8226; A string containing only the ’/’ character indicates the "default" servlet of
    the application. In this case the servlet path is the request URI minus the context
    path and the path info is null.
    &#8226; All other strings are used for exact matches only.
    SRV.11.2.1 Implicit Mappings
    If the container has an internal JSP container, the *.jsp extension is mapped to it,
    allowing JSP pages to be executed on demand. This mapping is termed an implicit
    mapping. If a *.jsp mapping is defined by the Web application, its mapping takes
    precedence over the implicit mapping.
    A servlet container is allowed to make other implicit mappings as long as
    explicit mappings take precedence. For example, an implicit mapping of
    *.shtml could be mapped to include functionality on the server.看看吧!