Minha aplicação está retornando para localhost após login com sucesso, o que pode ser? Configurei corretamente, conforme o curso de Spring MVC.
@Override
protected void configure(HttpSecurity http) throws Exception {
http
.authorizeRequests()
.antMatchers("/", "/home").permitAll()
.anyRequest().authenticated()
.and()
.formLogin()
.loginPage("/login")
.permitAll();
}