Servlets – how do I specify filter priority in a Java Web application?

Hello, I hope I can define two such filters

<filter-mapping>
    <filter-name>SecurityFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>ContextFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

On my web Using the same schema / *, I hope I can make sure that securityfilter will execute before another Is there a way?

Solution

What you do is XSD from sun:

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>