配置文件内容:
<filter>
<filter-name>LoginFilter</filter-name>
<filter-class>com.syq.servelet.LoginFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>LoginFilter</filter-name>
<url-pattern>/background/admin/*</url-pattern>
</filter-mapping>
看看自己要跳转的页面是否包含在你写的<url-pattern>的路径下
时间: 2024-10-26 15:58:43