我的过滤器截获了对上下文根的请求,它是如何发生的?

时间:2018-04-27 08:47:51

标签: java filter url-pattern

我的网络应用程序的上下文是“/”,我的过滤器拦截了对它的请求(http://localhost:8080/)(我没想到它)。它是怎么发生的?

这是我的过滤器:

<filter>
    <filter-name>authorizationFilter</filter-name>
    <filter-class>com.sitech.ismp.util.context.AuthorizationFilter</filter-class>
</filter>
<filter-mapping>
    <filter-name>authorizationFilter</filter-name>
    <url-pattern>*.do</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>authorizationFilter</filter-name>
    <url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
    <filter-name>authorizationFilter</filter-name>
    <url-pattern>*.html</url-pattern>
</filter-mapping>

0 个答案:

没有答案