<filter>
<filter-name>authority</filter-name>
<filter-class>com.util.AuthorityFilter</filter-class>
</filter>
<!—设置多个过滤方案- ->
<filter-mapping>
<filter-name>authority</filter-name>
<url-pattern>/pages/genbill/*</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>authority</filter-name>
<url-pattern>/pages/cmm/*</url-pattern>
</filter-mapping>
<!—匹配后缀名- ->
<filter-mapping>
<filter-name>authority</filter-name>
<url-pattern>*.do</url-pattern>
</filter-mapping>
<!—匹配路径- ->
<filter-mapping>
<filter-name>authority</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
为JSP配置多个过滤器
最新推荐文章于 2020-06-16 18:33:46 发布