| | |
| | | |
| | | @Override |
| | | protected void configure(AuthenticationManagerBuilder auth) throws Exception { |
| | | auth.authenticationProvider(new DaoAuthenticationProvider()); |
| | | auth.userDetailsService(userDetailsService).passwordEncoder(new BCryptPasswordEncoder()); |
| | | } |
| | | |
| | |
| | | // 自定义权限拒绝处理类 |
| | | .exceptionHandling().accessDeniedHandler(accessDeniedHandler) |
| | | .and() |
| | | // 图形验证码过滤器 |
| | | //图形验证码过滤器 |
| | | //.addFilterBefore(imageValidateFilter, UsernamePasswordAuthenticationFilter.class) |
| | | // 短信验证码过滤器 |
| | | //.addFilterBefore(smsValidateFilter, UsernamePasswordAuthenticationFilter.class) |