类 SecurityConfig
- java.lang.Object
-
- org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
- me.youm.boot.configure.SecurityConfig
-
- 所有已实现的接口:
org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>,org.springframework.security.config.annotation.web.WebSecurityConfigurer<org.springframework.security.config.annotation.web.builders.WebSecurity>
@Configuration @EnableWebSecurity @EnableGlobalMethodSecurity(prePostEnabled=true) public class SecurityConfig extends org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapterSecurity 安全核心配置类- 作者:
- youta
-
-
构造器概要
构造器 构造器 说明 SecurityConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.springframework.security.crypto.bcrypt.BCryptPasswordEncoderbCryptPasswordEncoder()密码加密方式protected voidconfigure(org.springframework.security.config.annotation.web.builders.HttpSecurity http)Http Security 核心配置voidconfigure(org.springframework.security.config.annotation.web.builders.WebSecurity web)Web Configure 核心配置-
从类继承的方法 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
authenticationManager, authenticationManagerBean, configure, getApplicationContext, getHttp, init, setApplicationContext, setAuthenticationConfiguration, setContentNegotationStrategy, setObjectPostProcessor, setTrustResolver, userDetailsService, userDetailsServiceBean
-
-
-
-
方法详细资料
-
bCryptPasswordEncoder
@Bean public org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder bCryptPasswordEncoder()
密码加密方式- 返回:
BCryptPasswordEncoder
-
configure
public void configure(org.springframework.security.config.annotation.web.builders.WebSecurity web)
Web Configure 核心配置- 指定者:
configure在接口中org.springframework.security.config.annotation.SecurityConfigurer<javax.servlet.Filter,org.springframework.security.config.annotation.web.builders.WebSecurity>- 覆盖:
configure在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
-
configure
protected void configure(org.springframework.security.config.annotation.web.builders.HttpSecurity http) throws java.lang.ExceptionHttp Security 核心配置- 覆盖:
configure在类中org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter- 抛出:
java.lang.Exception
-
-