filter的执行顺序问题
<filter>
<filter-name>testFilter</filter-name>
<filter-class>com.hh.test.TestFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>testFilter</filter-name>
<url-pattern>/myspace/test/testFilter.jsp</url-pattern>
</filter-mapping>
<filter>
<filter-name>testFilter1</filter-name>
<filter-class>com.hh.test.TestFilter1</filter-class>
</filter>
<filter-mapping>
<filter-name>testFilter1</filter-name>
<url-pattern>/myspace/*</url-pattern>
</filter-mapping>
我自己尝试了一下,testFilter,和testFilter1的执行顺序是通过web.xml中的先后配置来的,是这样的吗?
------解决方案--------------------按照filtermapping的顺序
------解决方案--------------------