Spring security 添加自定义过滤器是否会影响链?

Spring security 添加自定义过滤器是否会影响链?,spring-security,Spring Security,如果我定义一个过滤器链代理,如下所示: <bean id="filterChainProxy" class="org.springframework.security.web.FilterChai nProxy"> <security:filter-chain-map path-type="ant"> <security:filter-chain pattern="/**" filters=" securityContextPersistenceFilter, au

如果我定义一个过滤器链代理,如下所示:

<bean id="filterChainProxy" class="org.springframework.security.web.FilterChai nProxy">
<security:filter-chain-map path-type="ant">
<security:filter-chain pattern="/**"
filters="
securityContextPersistenceFilter,
authenticationProcessingFilter" />
</security:filter-chain-map>
</bean>

是否执行标准过滤器链中的其他过滤器?我应该以这种方式定义所有需要的过滤器,还是将它们与我一起运行,并将它们显式地放入“过滤器”中 财产

干杯

是否执行标准过滤器链中的其他过滤器

不需要。您需要明确定义所有筛选器

如果使用默认过滤器链在某个位置插入过滤器。然后所有的过滤器都会围绕着你的过滤器运行

查看正在运行的过滤器的最简单方法是启用spring调试日志。在上搜索“debug”,您将看到如何启用它