Failure Handler

    로그인 실패시 Failure Handler

    securityConfig.java private final AuthenticationFailureHandler customAuthFailureHandler; @Override protected void configure(HttpSecurity http) throws Exception { http.csrf().disable(); http.authorizeRequests() .antMatchers("/","/user/**","/image/**","/subscribe/**","/comment/**","/api/**").authenticated() .anyRequest().permitAll() .and() .formLogin()//위에있는 url말고 다른곳에 들어갈 경우 loginPage로 redirect시킴..