public class CustomWebSecurityConfigurer
extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
| 构造器和说明 |
|---|
CustomWebSecurityConfigurer() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.springframework.security.authentication.AuthenticationManager |
authenticationManagerBean()
配置认证管理器Bean 用于处理认证请求
|
protected void |
configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
配置认证管理器 注册所有自定义的认证提供者
|
void |
configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
配置HTTP安全规则 设置基本的安全配置,包括: 1.
|
authenticationManager, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean@Bean(value="org.springframework.security.authenticationManager")
public org.springframework.security.authentication.AuthenticationManager authenticationManagerBean()
throws Exception
authenticationManagerBean 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterException - 当配置过程中发生错误时抛出protected void configure(org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder auth)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterauth - 认证管理器构建器Exception - 当配置过程中发生错误时抛出public void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
throws Exception
configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterhttp - HTTP安全配置器Exception - 当配置过程中发生错误时抛出Copyright © 2025. All rights reserved.