类 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.WebSecurityConfigurerAdapter
    Security 安全核心配置类
    作者:
    youta
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder bCryptPasswordEncoder()
      密码加密方式
      protected void configure​(org.springframework.security.config.annotation.web.builders.HttpSecurity http)
      Http Security 核心配置
      void configure​(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
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • SecurityConfig

        public SecurityConfig()
    • 方法详细资料

      • 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.Exception
        Http Security 核心配置
        覆盖:
        configure 在类中 org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter
        抛出:
        java.lang.Exception