1.@SecurityAutoConfiguration
2022-04-17 15:33:21 3 举报
AI智能生成
@SecurityAutoConfiguration 调用链
作者其他创作
大纲/内容
DefaultAuthenticationEventPublisher
SecurityDataConfiguration
SpringBootWebSecurityConfiguration
WebSecurityEnablerConfiguration
EnableWebSecurity
EnableGlobalAuthentication
AuthenticationConfiguration
ObjectPostProcessorConfiguration
SpringWebMvcImportSelector
OAuth2ImportSelector
WebSecurityConfiguration
WebSecurityConfiguration
注入了 类型为 FilterChainProxy 的 springSecurityFilterChain
FilterChainProxy
有属性 filterChains : List<SecurityFilterChain>, 该集合元素唯一
SecurityFilterChain
其子类默认唯一
DefaultSecurityFilterChain
有属性filters: List<Filter>
DelegatingFilterProxyRegistrationBean
在其doFilter中: 获取springSecurityFilterChain并将其挂载
SecurityFilterAutoConfiguration
在 @ConditionalOnBean(name = "springSecurityFilterChain") 的情况下:
@Bean了一个 DelegatingFilterProxyRegistrationBean 类型的name为securityFilterChainRegistration对象
@Bean了一个 DelegatingFilterProxyRegistrationBean 类型的name为securityFilterChainRegistration对象
0 条评论
下一页