Filters 'com.lich0079.services.CustomAuthenticationProcessingFilter[ order=700; ]' and 'org.springframework.security.ui.webapp.AuthenticationProcessingFilter[ order=700; ]' 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'>.
<beans:bean id="customAuthenticationProcessingFilter"
class="com.lich0079.services.CustomAuthenticationProcessingFilter">
<custom-filter position="AUTHENTICATION_PROCESSING_FILTER" />
<beans:property name="authenticationManager" ref="_authenticationManager"/>
<beans:property name="defaultTargetUrl" value="/"/>
<!--
before|position|after
-->
</beans:bean>
position 改成 before
本文介绍了解决Spring Security中自定义认证过滤器与默认过滤器冲突的问题,提供了修改自定义过滤器位置的方法。
652

被折叠的 条评论
为什么被折叠?



