其次序定义在FilterOrderRegistration类中,内部使用Map<String, Integer>来存放对应类名的次序
类 | 次序 |
DisableEncodeUrlFilter | 100 |
ForceEagerSessionCreationFilter | 200 |
ChannelProcessingFilter | 300 |
WebAsyncManagerIntegrationFilter | 500 |
SecurityContextHolderFilter | 600 |
SecurityContextPersistenceFilter | 700 |
HeaderWriterFilter | 800 |
CorsFilter | 900 |
CsrfFilter | 1000 |
LogoutFilter | 1100 |
OAuth2AuthorizationRequestRedirectFilter | 1200 |
Saml2WebSsoAuthenticationRequestFilter | 1300 |
X509AuthenticationFilter | 1400 |
AbstractPreAuthenticatedProcessingFilter | 1500 |
CasAuthenticationFilter | 1600 |
OAuth2LoginAuthenticationFilter | 1700 |
Saml2WebSsoAuthenticationFilter | 1800 |
UsernamePasswordAuthenticationFilter | 1900 |
DefaultLoginPageGeneratingFilter | 2100 |
DefaultLogoutPageGeneratingFilter | 2200 |
ConcurrentSessionFilter | 2300 |
DigestAuthenticationFilter | 2400 |
BearerTokenAuthenticationFilter | 2500 |
BasicAuthenticationFilter | 2600 |
RequestCacheAwareFilter | 2700 |
SecurityContextHolderAwareRequestFilter | 2800 |
JaasApiIntegrationFilter | 2900 |
RememberMeAuthenticationFilter | 3000 |
AnonymousAuthenticationFilter | 3100 |
OAuth2AuthorizationCodeGrantFilter | 3200 |
SessionManagementFilter | 3300 |
ExceptionTranslationFilter | 3400 |
FilterSecurityInterceptor | 3500 |
AuthorizationFilter | 3600 |
SwitchUserFilter | 3700 |