public class AuthorizationSecurityInterceptor extends AbstractSecurityInterceptor implements Filter
<beans:bean id="securityInterceptor" class="com.demo.subsystem.authentication.service.impl.AuthorizationSecurityInterceptor">
<beans:property name="accessDecisionManager" ref="authorizationAccessDecisionManager" />
<beans:property name="authenticationManager" ref="authenticationManager" />
<beans:property name="securityMetadataSource" ref="authorizationSecurityMetadataSource" />
</beans:bean>
<http use-expressions="true" access-denied-page="/denied" entry-point-ref="authenticationProcessingFilterEntryPoint">
<logout invalidate-session="true" logout-success-url="/login" logout-url="/logout" delete-cookies="JSESSIONID"/>
<custom-filter ref="loginAuthenticationFilter" before="FORM_LOGIN_FILTER"/>
<custom-filter ref="securityInterceptor" position="FILTER_SECURITY_INTERCEPTOR" />
<session-management invalid-session-url="/timeout">
<concurrency-control session-registry-ref="sessionRegistry" max-sessions="1" error-if-maximum-exceeded="false" expired-url="/timeout"/>
</session-management>
</http>
我要替换FILTER_SECURITY_INTERCEPTOR拦截器
启动时报错Configuration problem: Filter beans '<authorizationSecurityInterceptor>' and '<org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>' have the same 'order' value. When using custom filters, please make sure the positions do not conflict with default filters. Alternatively you can disable the default filters by removing the corresponding child elements from <http> and avoiding the use of <http auto-config='true'>.
好像只能在<spanstyle="font-family:Verdana,sans-serif,宋体;font-size:14px;line-height:22px;background-color:#FFFFFF;">FILTER_SECURITY_INTERCEPTOR的before,确实要替换的话,就不能用http标签,而是写一大堆bean3q,我试验了几次,确实是这样
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。