配置文件内容:
<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-12-28 17:28:47