• 大小: 94KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-04
  • 语言: 其他
  • 标签: SpringBoot  Security  

资源简介

SpringBoot+SpringSecurity案例Demo

资源截图

代码片段和文件信息

package com.example.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.web.access.AccessDeniedHandler;
@Configuration
public class SpringSecurityConfig extends WebSecurityConfigurerAdapter{
    @Autowired
    private AccessDeniedHandler accessDeniedHandler;

//    管理员允许登陆
//    普通用户允许登陆
//    403错误处理


    @Override
    protected void configure(HttpSecurity http) throws

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        249  2017-10-11 09:25  SecurityDemo1011\.gitignore

     文件        644  2017-10-11 09:25  SecurityDemo1011\.idea\compiler.xml

     文件        172  2017-10-11 09:25  SecurityDemo1011\.idea\encodings.xml

     文件        514  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__aopalliance_aopalliance_1_0.xml

     文件        575  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__ch_qos_logback_logback_classic_1_1_11.xml

     文件        554  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__ch_qos_logback_logback_core_1_1_11.xml

     文件        522  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_fasterxml_classmate_1_3_4.xml

     文件        644  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_annotations_2_8_0.xml

     文件        602  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_core_2_8_10.xml

     文件        630  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_fasterxml_jackson_core_jackson_databind_2_8_10.xml

     文件        546  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_jayway_jsonpath_json_path_2_2_0.xml

     文件        700  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__com_vaadin_external_google_android_json_0_0_20131108_vaadin1.xml

     文件        611  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__javax_validation_validation_api_1_1_0_Final.xml

     文件        455  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__junit_junit_4_12.xml

     文件        542  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__net_minidev_accessors_smart_1_1.xml

     文件        521  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__net_minidev_json_smart_2_2_1.xml

     文件        667  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__nz_net_ultraq_thymeleaf_thymeleaf_layout_dialect_1_4_0.xml

     文件        451  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__ognl_ognl_3_0_8.xml

     文件        625  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_core_8_5_20.xml

     文件        611  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_el_8_5_20.xml

     文件        660  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_apache_tomcat_embed_tomcat_embed_websocket_8_5_20.xml

     文件        549  2017-10-11 09:59  SecurityDemo1011\.idea\libraries\Maven__org_aspectj_aspectjweaver_1_8_10.xml

     文件        535  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_assertj_assertj_core_2_6_0.xml

     文件        532  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_codehaus_groovy_groovy_2_4_12.xml

     文件        532  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_hamcrest_hamcrest_core_1_3.xml

     文件        553  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_hamcrest_hamcrest_library_1_3.xml

     文件        634  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_hibernate_hibernate_validator_5_3_5_Final.xml

     文件        550  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_javassist_javassist_3_21_0_GA.xml

     文件        608  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_jboss_logging_jboss_logging_3_3_1_Final.xml

     文件        549  2017-10-11 09:25  SecurityDemo1011\.idea\libraries\Maven__org_mockito_mockito_core_1_10_19.xml

............此处省略127个文件信息

评论

共有 条评论