web.xml filter 顺序

时间:2021-12-27 01:06:53

The order the container uses in building the chain of filters to be applied for a
particular request URI is as follows:
1. First, the <url-pattern> matching filter mappings in the same order that these
elements appear in the deployment descriptor.
2. Next, the <servlet-name> matching filter mappings in the same order that these
elements appear in the deployment descriptor

详细见 servlet-3_0-final-spec.pdf