spring security 自定义过滤器

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,bean,UI,Security)