@EnableWebSecurity public class SpringSecurityConfig extends WebSecurityConfigurerAdapter { /** * 失败处理 */ @Autowired private AuthenticationFailureHandler customAuthenticationFailureHandler; /** * 成功处理 */ @Autowired private AuthenticationSuccessHandler customAuthenticationSuccessHandler; /** * 加密方法 */ @Autowired private PasswordEncoder passwordEncoder; @Autowired private UserDetailsService customUserDetailsService; /** * 验证码过滤器 */ @Autowired private ImageCodeValidateFilter imageCodeVa