7
我可以从<filter-mapping>内部的<url-pattern>中排除一些具体的url吗?
我希望对所有网址应用一种具体的过滤器,除了一种具体的(即/*除外/specialpath)。 有可能这样做吗? 样例代码: <filter> <filter-name>SomeFilter</filter-name> <filter-class>org.somproject.AFilter</filter-class> </filter> <filter-mapping> <filter-name>SomeFilter</filter-name> <url-pattern>/*</url-pattern> <!-- the question is: how to modify this line? --> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher> </filter-mapping>