# spring-boot-security **Repository Path**: one_more/spring-boot-security ## Basic Information - **Project Name**: spring-boot-security - **Description**: springboot 集成 security - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-19 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ### spring-boot 集成 security + SecurityConfig 主要配置 + MyUserDetailService 扩展 UserDetailsService ```java @Override protected void configure(AuthenticationManagerBuilder auth) throws Exception { auth.userDetailsService(userDetailsService) .passwordEncoder(passwordEncoder()); } ``` #### 具体操作 + http://localhost:8080/login (zhangsan 123) > 访问r1可以,访问r2被拦截 + http://localhost:8080/login?logout